I have gotten this error (screenshot below) a couple of times now when trying to upload an archive of an iPhone app to the App Store for TestFlight purposes.
The Apple Developer account is definitely paid for and I've clicked the "Download All" button to get a hold of all the provisioning profiles from Apple.
Any ideas?
As is the case with a lot of these questions about Xcode the fix was simple. After a Clean Build Folder (Alt+Shift+Cmd+K), another Archive, and unticking the bitcode checkbox on the app upload screen, everything worked fine.
Related
I've got a problem uploading an app on the app store. I have a developer account since this morning.
I've done all the certificate but when I arrive in the organizer, when I click on download dsyms it's said that I've no account (and the upload button is greyed out).
When I click on add account, I see my account
(See the screenshots)
Thanks for your help
Go to iTunesconnet and sign in there, then create your app details there, remember, you must have to provide the exact version of your app to the iTunesconnect. Then, when everything you done in iTunesconnet, then try to upload your app with your correct distribution profile.
Thanks
Last week, with Xcode 7, I was able to upload without any issue. But today I am getting the message your app has changed to invalid binary.
I have seen that now with Xcode 8 a new icon 20x20 2x and 3x is added. I added one, but still getting the error.
Does anyone had similar problem?
Сheck your email!
In my case, I wasted a lot of time because I did not check my email. When you get such an error, Apple sends you an email with it's description.
For example, this is what Apple sent me:
"This app attempts to access privacy-sensitive data without a usage
description. The app's Info.plist must contain an
NSCameraUsageDescription key with a string value explaining to the
user how the app uses this data."
After days of wrestling with the same problem I finally got my app successfully submitted, but only after being on the phone with Apple Developer support.
A couple of things to keep in mind:
Make sure you set the Info.plist description keys for any entitlements. This is necessary for iOS apps. Mine was a macOS app, so this didn't apply.
Head over to iTunes Connect, and recreate all your provisioning profiles and code signing certificates if you're not 100% sure that they're valid. You can do it for both Developer and Distribution.
In Xcode, turn off automatic code signing for your app, and any build targets (you can try automatic code signing in Xcode after completing steps #2 and #4 but that wasn't what worked for me).
Go to Xcode preferences, and click your development team, and in the sheet that comes up, you should see some "Download" buttons beside the newly created (in iTunes Connect) code signing certificates and provisioning profiles. Click them all. And so you don't get confused in step #5, delete all the other stale provisioning profiles and code signing identities for this app.
In Build Settings for each of your targets, make sure that the Release build setting for code signing, and provision profile are set to the above newly created code signing certificate and provisioning profile.
Bump your build number.
Deep clean your project (Option-Shift-Command-K).
Archive build your app.
In the Organizer that opens up, select the newly archived app, and validate (it always validated, but I still would get Invalid Binary later).
Export the build and select the option "Save for Mac App Store Deployment" or similar.
When prompted, use the same Provisioning Profiles you used previously and save.
Open the .pkg in Application Loader which you can launch from Xcode > Open Developer Tool > Application Loader menu.
I was't getting any emails on the Invalid Binary issue. Instead, I was lucky enough to have set up my iPad with iTunes Connect, and so, like clock-work, I was getting notifications within a couple minutes of uploading the app: "Your app ... has changed to Invalid Binary."
If you don't get one of these Invalid Binary notifications, that's a good sign. Another 10-15 minutes later, I checked the iTunes Connect portal, and I could finally add the uploaded build and submit for review.
After a while of searching, as a last-ditch effort I added every possible 'NS...UsageDescription into each of my target's Info.plist and this seems to have worked. After process of elimination, I deduced that it was either the NSAppleMusicUsageDescription or the NSFaceIDUsageDescription key-string pair that was preventing the upload from being successful so I just added them even though I don't use either in my project. I have also read on some other threads that something with a new version of Xcode required them to have the NSAppleMusicUsageDescription even though they didn't use anything related to Apple Music.
Im having problem to validate the archive to submit to apple store.
When i click 'Validate...' (Organizer), show this message "You cannot run your app on a device".
I already tested my app on a device, but when i archive to validate appear this message.
I don't know what to do, i need help.
Im using xcode 6.3.1, sdk 8.3.
I had the same problem.
I dont know why, but i have to go to xcode > preferences > accounts, and remove all accounts and put again. It's work for me.
I'm having the worst time ever submitting an update to my Mac app. Everything was fine until I updated to Xcode 6. I'm in Mavericks, 10.9.4. I get the following error:
iTunes Store operation failed.
Unable to process application at this time due to the following error: iOS Apps must have a provisioning profile.
I have no idea why it says "iOS." Don't know if that's an Xcode bug or it thinks I'm making an iOS app. I used the same Xcode project file to submit the Mac app in the previous Xcode.
I have tried the following with no results:
• Revoked and deleted all certificates and provisioning profiles and started over.
• I created all certificates, provisioning profiles manually rather than Xcode managing them.
• Set the provisioning profile in "release" in the target and in a different occasion, in the project file.
• Gone into the project info and created a separate configuration.
The only "weird" thing I would say that I could be doing insanely obviously wrong is when I look at the options for code singing identity for release, it says "Mac Developer:yata" but there is no option for "Mac Distribution:(myname)" Should there be? I didn't need that in the past. Also, the only options that I can select are in a section called "identities in keychain." Should there be another section? "Identities in Xcode?"
Thank you for anyone that can help. I'll try pretty much anything at this point.
Solution for my case:
I got error in validation stage.
On organizer we see:
1) Go to Apple download page and download xCode 5.1.1
2) Double click on xcode_5.1.1.dmg
3) Copy xCode.app to Desktop
4) Rename xCode.app -> xCode511.app
5) Move xCode511.app -> Applications
6) Close xCode 6.1
7) Work with validation and upload in xCode511.app
UPDATED
8) Be careful ! ITC.apps.validation.prerelease_build_missing
I don't have Xcode right now, but here are the steps:
Delete your certificate and provisioning, both your mac and iTunes account
Regenerate the certificates and provisioning profile (distribution)
Download double click
Go to the account tab, then view account
All certificates and profiles will be listed refresh the stuff there
Clean and rebuild your app with the right provision and 3 party Mac developer
archive, validate and submit (select the right provison and match the app)
voila!
EDIT
Everything you will ever need to know :
https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/Introduction/Introduction.html
I was having the same problem... finally I click on Submit and it worked! It seems that the problem is on Validate only.
Okay so our problem was that our company name had an apostrophe in it ---- could have the same issue if you have quotes in your company name as well. I contacted Apple for them to change it and then uploading worked from Xcode 5.1.1.
In Xcode 4.3.3 I am able to submit my app to the app store and it is "waiting for review." I deleted my app from my device(iPad) then I decided I wanted it back on. I cannot not accomplish this. Xcode says the build is a success but then a message stating "no valid provisioning profiles for this executable can be found" appears. it does not appear as a red flag in Xcode but rather it's own window.
I've never dealt with such a frustrating apple product as Xcode and the provisioning portal and code signing. Apple, do something about this never ending circle of frustration. UGH!!!
I felt this way too when I first learned this:
I've never dealt with such a frustrating apple product as Xcode and
the provisioning portal and code signing.
If you just submitted the app to the App Store, you used a distribution profile. You should check to make sure, though, that your developer profile is still working. Click on your project in Xcode at the top of the left column, then Build Settings > Code Signing > Code Signing Identity > Debug > Any iOS SDK. It should say something like:
iPhone Developer (currently matches 'iPhone Developer blah blah blah')
If it doesn't say that, select your profile from the drop down list. If there's no matching profile. You need to download it again. Let me know if this helps.