1

I noticed a different when creating an .ipa file manually using xcrun than exporting it from xcode. The xcrun 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/MyApp.app" -o "~/MyApp.ipa" --sign "<HIDDEN>" --embed "<HIDDEN>"

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

Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
Nimrod Gutman
  • 1,027
  • 1
  • 10
  • 21

1 Answers1

5

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.

http://www.matrixprojects.net/p/xcodebuild-export-options-plist

Nimrod Gutman
  • 1,027
  • 1
  • 10
  • 21