Invalid IPA when creating via command line

I am currently having problems creating an IPA file using the xcode command-line tool (xcodebuild and xcrun). First I run the following:

xcodebuild schema diagram -sdk iphoneOS6.0 -arch armv7 -configuration config clean build #

where the circuit and configuration are the corresponding circuit and configuration

Then i ran

xcrun -sdk iphoneos PackageApplication -v appPath -o ipaPath -sign codesignature

where appPath and ipaPath are the paths to the application and ipa and the code signature with which I sign ipa. I also tried to implement a training profile

The process creates an ipa file, however, when I try to drag it into itunes, it tells me that it is not a valid IPA. I also tried this process through a special distribution process through Archive in xcode and managed to create a valid IPA, however, since I am trying to automate the process, this is not quite what I want.

Any thoughts why the IPA will be invalid?

thanks

+4
source share
1 answer

You forgot --embed your training profile.

I'm doing something like this

 xcrun -sdk iphoneos PackageApplication -v -o `pwd`/out.ipa --sign "iPhone Distribution: Company Name (ID)" --embed /path/to/mobileprovision 
0
source

Source: https://habr.com/ru/post/1442017/


All Articles