Nimrod Gutman Nimrod Gutman - 1 year ago 143
iOS Question

Create IPA with symbols using xcrun

I noticed a different when creating an .ipa file manually using

than exporting it from xcode. The
version doesn't have any symbols included with the .ipa.

I was wondering what's the best way to create an .ipa with symbols (no reason not to send them) manually from the command line, I'm using TeamCity CI to generate our production .ipa files.

I use the following command line to generate the IPA -

/usr/bin/xcrun -sdk iphoneos PackageApplication -v "DerivedData/MyApp/Build/Products/Release-iphoneos/" -o "~/MyApp.ipa" --sign "<HIDDEN>" --embed "<HIDDEN>"

I run it after invoking
so the
folder got the latest release version of my app.

Answer Source

I'll answer myself -

In Xcode 7 Apple added the ability to specify export options plist file to better control the .ipa file creation. One of the options there is <key>uploadSymbols</key> that does exactly what I need.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download