Including a .dSYM File in a .ipa File

For iOS builds with Xcode 8, is it possible to include the generated .dSYM file in the .ipa file?

I am building my ipa files like this (in Jenkins, but that doesn't matter) ...

# Create xarchive
xcodebuild
    -workspace /sourcepath/myapp.xcworkspace
    -sdk iphoneos
    -scheme 'Distribution Production'
    -configuration 'Distribution Production'
    -archivePath '/outputpath/Distribution Production-iphoneos/myapp.xcarchive'
    'CODE_SIGN_IDENTITY=********'
    'PROVISIONING_PROFILE=App Enterprise PRD'
    DEBUG_INFORMATION_FORMAT=dwarf-with-dsym
    archive

# Create IPA
xcodebuild
    -exportArchive
    -archivePath '/outputpath/Distribution Production-iphoneos/myapp.xcarchive'
    -exportOptionsPlist '/outputpath/Distribution Production-iphoneos/export_options.plist'
    -exportPath '/outputpath/Distribution Production-iphoneos'

This generates an xarchive and finally an ipa file. Then xarchive contains the .dSYM file, but I would like to have .dSYM in the IPA file. Is it possible?

I tried to use these arguments additionally when creating xarchive:

'DWARF_DSYM_FOLDER_PATH=/outputpath/Distribution Production-iphoneos'
'DWARF_DSYM_FILE_NAME=Distribution Production.dSYM'

... but then xarchive does not contain dSYM, and it is not found anywhere else.

+4
source share

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


All Articles