Generate .IPA with Xcode - ios

I am trying to finalize my iOS application, the problem I encounter is that I can not generate file .IPA file export from the archive that is created.
When I deploy the application directly to a device, the application works, as well as in an emulator.
I do not have a distributor account on Apple, I use my iTunes account as a developer account.
Is there a way to generate the .IPA file so that I can share my application so that others can test it?
I thank you in advance :)

Edit your app Scheme, Go to Run
Select Info Tab and Change the build configuration from debug to release,
it will help you to encounter your issue.
Quick Solution, goto archive section and change configuration to debug. it will allow you to generate .IPA

For internal testing purpose, you can drag .app file from Products folder of XCode after running app on device as target & drop into iTunes Connect. Get .ipa file by Right Click on app icon in Apps section of iTunes .Select Show In Finder.

Related

Can I use Transporter to upload Flutter iOS apps to App Store console?

I got into mobile development through Flutter, so all my contact with native platforms and techs comes from that.
So far I've been distributing my Flutter apps as the doc says, opening the build/ios/archive/Runner.xcarchive package with Xcode and validating/distributing it.
I found fastlane, but before getting into it, is there a way to use Transporter to upload iOS apps to Apple Store console? It does not recognize the .xcarchive file with it, I suspect I have to do something else before but I could not find what
Thank you!
Archive app with XCode.
Go to "Distribute" and choose "Export".
You will have .ipa exported with provisioning profile, and just add it to Transporter app.
Yes, I just did since brilliant xCode got stuck consistently while trying to upload the app, I switched to Transporter:
Run "flutter build ios --release"
Copy the generate /build/ios/iphoneos/YourApp.app file to a newly created folder named "Payload"
Compress the folder (right click - compress)
rename the compressed file to have a ".ipa" instead of a ".zip"
upload it using transporter

Xcode couldn't find any iOS App Store Provisioning Profiles

I'm using a beta of Xcode 9. I've archived my iOS Project and whenever I try to validate it, I get this error for every one of the targets in my app:
And I'm getting this error for every target like I said. The provisioning profile for each of the targets is an Xcode Managed Profile. What am I doing wrong?
You should try two options:
1) In Developer.Apple.com create a distribution provisioning profile, download it, and select it. Then re-archive your project and validate. This should dismiss the error.
2) If option 1 doesn't work for you, click the Export button beside archive and save your .app file to your Desktop. Then open Application Loader (In Xcode, click Xcode > Open Developer Tool > Application Loader). Enter your credentials, then upload the app using the .app file you generated and saved to your Desktop.
Note: Sometimes Xcode shows fake errors when validating and Application Loader will ignore those and allow you to upload a build successfully.
When Application Loader is finished, you should then be able to see your build in iTunesConnect after about 15-30 minutes.
It happened to me when I wanted to make an enterprise build but I accidentally selected to upload build to App Store.
Mine worked on a simple second attempt with no changes or rebuild.

Xcode 6.0/6.1 and building with client's provisioning profile

I downloaded the latest Xcode 6.1 and with having my client's provisioning profile/certificate, I tried to build IPA file for them (for ad-hoc deployment) but in the new Xcode 6.1 when you start archiving, it tries to connect to my apple developer account and since my client's App Id doesn't exist, it says:
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues: An App ID with identifier 'com.myclient.something' is not available. Please enter a different string.
I used to do the same thing in Xcode 5.1.1 and I could archive and create the IPA file for my client with their provisioning profile. DO you know guys how can I build the IPA file for their in-house distribution in Xcode 6.1?
Thanks in advance,
Cam
Locate your .xcarchive file. Right click on it and select Show Package Contents. In the Products/Application folder you will find your app. Drag it onto the iTunes. iTunes will add it to the Applications tab. Go to the Applications tab in iTunes. Right click on your app and select Show In Finder. There you have your .ipa file

How do I use Application Loader to submit my app to the app store?

How do I publish my app to the iOS app store using Application Loader? I don't know how to get the file for Application Loader to locate. Please tell me in easy steps. Thanks!
Follow these steps:
In XCode, go to Product > Archive (*)
Click the Distribute App button, then select App Store Connect > Export and remember the export file location
In the menu go to XCode > Open Developer Tool > Application Loader
Follow the steps, indicating the .ipa export file of step 2. That's it!
(*) if the Archive menu option is unavailable change device to "Generic iOS Device" in top left.
Follow This Link
https://developer.apple.com/library/mac/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html
Install the certificate and go to projects build setting in Xcode. Find the “Code signing” section and set all items to “iPhone distribution: your company name”. Now choose “Archive” under product menu in Xcode.
Next log into iTunes connect and choose “Add new app” under My Applications. First create a new bundle (make sure that app identifiers match!) and then add the application.
Once you are done adding screenshots and general information, be sure to click “ready to add binary”. That’s all you need to do at iTunes connect.
Go back to xCode and open Organizer (Window – Organizer). Under archives tab you should see the archive for your application. Validate it and select Export to save your archive as .ipa file for App Store.
Next open Application loader (just search for it in spotlight). Choose “Deliver your app”. When prompted choose the previously created ipa file.
Application Loader will not let you log in with your normal icloud password. Remember to generate an app-specific password for you.
Go to: https://appleid.apple.com/
Log in and go to Security.
Press Generate password
Use this password to log in to Application Loader.
https://support.apple.com/en-us/HT204397
No need to use the Application Loader to submit your app to the App Store. In Xcode, make sure you've selected a physical device in the upper left corner, then from the menu, choose Product->Archive. After that's done, assuming no errors have occurred, the Organizer should pop up automatically and in the Archive tab, you can choose to submit your app to the App Store, by choosing Distribute.
Application Loader is no longer packaged with Xcode 11+. For a good automated tool, you can use the built-in command line tool, iTMSTransporter by running xcrun iTMSTransporter. More information here.
With xCode 11 the Application Loader was removed.
https://developer.apple.com/app-store-connect/whats-new/?id=submissionsupdate7-31
I found on an Adobe Forum:
https://community.adobe.com/t5/Animate/Xcode-11-don-t-have-application-loader/td-p/10516050
The suggestion was, use xcrun … on terminal; but it was not working for me :-(
xcrun altool --upload-app -f <file> -t <platform> -u <username> -p <password>
I installed parallel to xCode 11.1 xCode 10.3 and was able to use the old Application Loader
Update 2019-11-27:
Apple rolled-out the application 'Transporter', here the link to the appstore. The app is very similar to the "old" Application Loader and shows in case of errors speaking messages.

iTunes Connect Upload: which files to upload

I've added my iOS app to iTunes Connect and is currently trying to upload the binary using Application Loader. In the iTunes Connect Developer Guide is seems that they are uploading a zip file. Should I just make a zip of my complete project or what are they excepting?
You should upload the binary through Xcode.
It's a good idea to do a clean build first (Clean All Targets), and I usually delete my Build/ directory as well. Then do Build/Build and Archive. Make sure you have a device connected when you do this, and that the app is not in debug mode. Then open the Xcode organizer and select the binary to upload. That's all there is to it. You do not have to zip the files manually.
Here is step by step procedure to submit directly from xcode,
Just goto edit scheme > Archive > select Release.
Change your profiles to distribution (ios app store).
Select ios Device.
Goto Product> Archive
After completion goto Organizer
Select the Archive and click Distribute
Select Submit to iOS AppStore
Login
Select app, it will be showing app that has ready for upload status
Select profile.
Here you go.
Cheers
You should zip your *.app file.

Resources