How to generate an iOS IPA file with Ionic Framework?
You can easily build IPA from ionic framework. by following these steps
- Navigate to app folder
- Run cordova build command
- Open the Xcode Project
- Clean the project
- Select iOS mobile device to build for, don't use iOS emulator as device otherwise the archive is disabled.
- Archive the project
- Distribute the project
- Choose a method for distribution
- Choose a Profile
- Select a location to save the .ipa file
I have generate my .ipa file by using these steps hope it will works for your's.
this article is kind of old but should help you.
In Command line change into the folder that contains your *.xcodeproj, and run the following:
xcodebuild -target "My Target" -scheme "My Scheme"-configuration Release clean archive
Now you’ve got your xcarchive , Following line will generate ipa which you can upload to TestFlight.
cd platforms/ios/build/device/usr/bin/xcrun -sdk iphoneos PackageApplication "$(pwd)/$PROJECT_NAME.app" -o "$(pwd)/$PROJECT_NAME.ipa"
Hope this helps
What I do is to run this command:
ionic cordova run ios
It will build and make the project, generate the IPA and then launch the simulator. At that moment I just quit the simulator and voila! I have my IPA with just one command (Ionic 4).