Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate an iOS IPA file with Ionic Framework?

I've successfully built the iOS app with the ionic build ios command. But now I want to use TestFlight and it asks me for an IPA file. It seems that file is not generated with that build command. So, how can I generate it?

Thanks

like image 398
nicolasaiz173 Avatar asked Sep 18 '14 18:09

nicolasaiz173


People also ask

Does Ionic support iOS?

Because of this foundation in web technologies, Ionic can run anywhere the web runs — iOS, Android, browsers, PWAs, and more.


2 Answers

You can easily build IPA from ionic framework. by following these steps

  1. Navigate to app folder

OS X terminal with list command

  1. Run cordova build command

OS X terminal running ionic build command

  1. Open the Xcode Project

OS X Finder with project location

  1. Clean the project

XCode Product -> Clean menu

  1. Select iOS mobile device to build for, don't use iOS emulator as device otherwise the archive is disabled.

Xcode Target device selected

  1. Archive the project

Xcode Project -> Archive menu

  1. Distribute the project

XCode Organizer

  1. Choose a method for distribution

Selecting method for distribution

  1. Choose a Profile

Choosing a profile

  1. Select a location to save the .ipa file

Saving IPA file to Desktop folder

I have generate my .ipa file by using these steps hope it will works for your's.

like image 138
Roshan Bharti Avatar answered Sep 28 '22 05:09

Roshan Bharti


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

like image 31
Bhumit Mehta Avatar answered Sep 28 '22 04:09

Bhumit Mehta