Bundling app for app store distribution in Xcode 4.3 - ios

I can't believe how difficult it is to figure out the final process for building an app and getting it into the app store.
I've already prepped iTunes Connect with my app and it shows up in Application Loader.
I finally figured out how to "archive" the app, although none of the guides I found, including Apple's, seemed to really describe this process in complete detail.
Now I've got a .xcarchive package. For some reason, Application Loader will not let me select that kind of file. I read somewhere about needing to archive as a .zip file, so I tried that. Now Application Loader allows me to select the file, but after I click Send, it gives me this error:
"The application wrapper must end in .app."
What exactly is the process of archiving from Xcode 4.3 and getting the application uploaded into the app store?

In the XCode Organizer, does the 'Archives' tab allow ou to 'Distribute'? You should then have the option to 'Submit to the iOS App Store'.
This is described in more detail in Distributing Your iOS App.
The submission process doesn't get a lot of description because, when it works, it's quite simple. You never need to manually locate the '.xcarchive' package or '.ipa' file for your app store submission, only for testing or backups outside the app store. (You do need the archive package, but it's just quietly created and then uploaded by XCode.)

Related

iOS - Error: This action could not be completed. Try Again (-22421)

I am trying to upload an iOS App to the App Store, using Xcode >> Organizer, but I got the issue This Action could not be completed. Try Again (-22421) as in the below image.
I tried to re-upload app many times but same error occurred
Here is snaps for an issue I'm getting :
What to do next? How can I upload my app successfully on store?
Tried using Application Loader app and now getting another error
Error ITMS-90168: "The binary you uploaded was invalid.
Use Application Loader to upload your app, as Xcode organizer can't upload file (rejects IPA) sometimes, without genuine reason and it's frequently occurring issue, with Xcode Organizer, that apple could not resolve permanently.
There are few other reasons also for such kind of error, like
Apple app upload server is not working properly (not in
connection or lost connection during file upload). Just wait and try
again later (may be after a day).
Fluctuation in your network
connection, during file upload.
You may not have added privacy
statements in your info.plist file.
Cocoa Keys: Here, is list of keys that you should consider to add in your info.plist file, if you have used that service in your application.
Solution for error code: 90186
Outdated application loader can be reason of this error. Use latest Xcode tool and use application loader from Xcode Tool.
Incorrect/invalid provisioning profile, associated with your build. Ensure, your have used correct provisioning profile (A provisioning
profile with Distribution/Production mode is require. A Development mode provisioning profile won't allow your to upload app on store.)
You can find latest Application Loader Tool from latest Xcode Tool: Xcode (Menu) ► Open Developer Tool ► Application Loader
This works fine with application loader. You will have to create ur ipa from the Xcode organizer and use application loader.
I am facing this issue for the last week. finally uploaded using application loader.

This action could not be completed. Try Again (-22421) (Xcode)

I have tried to upload my app to App Store (iTunes Connect) to test my app in TestFlight, but always appears the same error message. I don´t know what I´m doing wrong. It´s the third day I´m trying to upload my app.
Also read that this is a problem from Apple's servers, but every day is the same problem.
Please help me with this problem.
I have done it with Application Loader. First export the .ipa file, and then proccesed in Application Loader to visualize in iTunes Connect. Never works with Xcode.
You can try following solutions:
Use Application Loader to upload your app, as Xcode organizer can't upload file (rejects IPA) sometimes, without genuine reason and it's frequently occurring issue, with Xcode Organizer, that apple could not resolve permanently.
Solution to error code: 22421
Apple app upload server is not working properly (not in
connection or lost connection during file upload). Just wait and try
again later (may be after a day).
Fluctuation in your network
connection, during file upload.
You may not have added privacy
statements in your info.plist file.
Cocoa Keys: Here, is list of keys that you should consider to add in your info.plist file, if you have used that service in your application.
Nowadays, you may also face, this error code: 90186 (with app loader)
Outdated application loader can be reason of this error. Use latest Xcode tool and use application loader from Xcode Tool.
Incorrect/invalid provisioning profile, associated with your build. Ensure, your have used correct provisioning profile (A provisioning
profile with Distribution/Production mode is require. A Development mode provisioning profile won't allow your to upload app on store.)
You can find latest Application Loader Tool from latest Xcode Tool: Xcode ▶ Open Developer Tool ▶ Application Loader
try this
cd ~
mv .itmstransporter/ .old_itmstransporter/
"/Applications/Xcode.app/Contents/Applications/ApplicationLoader.app/Contents/itms/bin/iTMSTransporter"

Xcode 7.3.1 : Unable to validate your application

I am trying to upload an application to store and getting this error Unable to validate your application
The path '/var/folders/ml/4s9tjk05443_gtbcft66hnyr0000gn/T/XcodeDistPipeline.KVe/Packages/Walmart Cupons.ipa' does not contain a file.**. For more information please refer to the screenshot attached.
I had the same issue but then I used Application Loader and it worked correctly. After validating your app Export your app by selecting option as Save for iOS App Store Deployment and then Just upload your apps ipa using Application Loader.
Download it from here:-
https://itunesconnect.apple.com/apploader/ApplicationLoader_3.1.dmgenter link description here
Video to how use Application Loader
https://www.youtube.com/watch?v=bWCDks75hg8
I suggest that you try to use Application Loader to upload your app to the App Store.
Archive your build.
Select the build and click export.
Select "Save for iOS App Store Development".
Once you successfully exported your build, go to Xcode > Open Developer Tool > Application Loader.
Login with your app developer account.
On the lower right corner click "choose".
Select the .ipa file that you just exported earlier.
Click next to upload your app.
Before I always use Xcode to upload my build for App Store, but a lot of problems occur. But when I use the App Loader. These problems seem to disappear.
Hope this helps. :)

Trying to Upload App to Mac App Store, Invalid Binary?

I'm getting ready to upload my Mac application to the Mac App Store, I've created the Application certificate and the installer certificate. When I go to validate my app, Xcode says the app has been validated and is ready to upload to the store. Every time I upload my app to iTunes Connect everything goes smoothly and the app uploads. Then the problem starts, in iTunes Connect my app state is listed as "Invalid Binary" and I receive an email from iTunes Connect saying my app was improperly signed. I really don't think I'm doing anything wrong. Right now, I have the project and the target in my app code signed, is this necessary or do I just need to sign one of them? Also, I've been having a strange issue that when I code sign the target my app builds but it doesn't run. It does not cause any error though. When only my project is signed, the app runs normally. I'm pretty confused on all of this so any help would be greatly appreciated. This is my first App Store submission so I'm excited to get an app up for sale.
Thanks for your time,
Sam
Edit: Just tried uploading the app with application loader. It uploaded to iTunes Connect but I still get the same invalid binary error. Also, I shared my archived application as a .pkg and tried to install it. I got an error saying that "This application cannot be installed on this computer". Any idea why this would happen?
You can do a:
codesign -dvvv *.app
on an app bundle directory from the Terminal command-line to see how the app you are trying to upload is signed.
Any Target setting overrides the identical Project setting for that target build. You should use a different build configuration for Distribution than for Release or Debug and running the app.

Best way for uploading binary Application Loader or Xcode organizer

I want to know best way for uploading binary to itunestore. Is it through Application loader or using Xcode organizer archive build, validate and submit.
There are significant differences which I've tried to list below (as of Xcode 6.3.2 - Jun 2015):
Xcode Organiser
The application to submit must be selected from the list of your locally archived apps (you cannot browse to a specfic file)
Gives option to 'Validate' your app before submitting
At validate/submission time will download/sync all the provisioning profiles associated with the selected Apple developer account and re-sign/re-embed the application with the appropriate one (it does indicate which one's get selected but you cannot override this)
Gives option to automatically upload the debugging symbols that are included in the archived application
NO upload progress
(Gives the option to Export to an *.ipa which could be used with Application Loader)
Application Loader
Requires you browse to an *.ipa file for its input
No option to Validate before submitting
Uses the provisioning profile that is already embedded in the *.ipa file
NO way to upload debugging symbols
Gives upload progress
You don't use Application Loader in Xcode 4 anymore. You can only upload through the Xcode Organiser...
As zekel mentions below, you can still use Application Loader to submit your IPA files. The Xcode Organiser method is useful if you are building the app yourself and want to validate and submit from one place. Application Loader method is useful if you have the IPA signed to the correct certificates installed on your system.
After using both methods, Application Loader gives you more indication of progress status which is useful if you are on a slow connection.
A sole developer or small team might just submit directly from Xcode, especially for a smaller project. But for a larger team, more complex project, or an automated build system, submitting from the Application Loader is easier.
It's a matter of workflow more than anything else.
I mostly use Application Loader it is best because:
It just requires you browse to an .ipa file.
We need not to worry about the provisioning profile that is already embedded in the .ipa file.
NO way to upload debugging symbols
We need not to Validate before submitting.
We can see the progress bar where and what is the status of app uploading.

Resources