Is there a way we can upload dSYM file when we upload .ipa file to TestFlight via shell script

Command


xcrun altool --upload-app -f $ipa_path -u $appstore_connect_username -p $appstore_connect_password

If we do it manually using Xcode -> Window -> Organizer then it shows a checkbox (Upload your app's symbols to receive symbolicated reports from Apple) which is checked by default.

Since we have automated ipa uploading to testflight using above command, but dSYM is not uploading in that case. How can we upload dSYM to AppStoreConnect automatically?

Note: My iOS app project doesn't have bitcode enabled.

Answered by DTS Engineer in 687978022

The symbol files are bundled in the .ipa file. dSYM files are not uploaded, instead there is a different format that is used with the extension .symbols. If you're not seeing that, then that points to an issue with how you create the .ipa file. What commands are you using to create it?

Accepted Answer

The symbol files are bundled in the .ipa file. dSYM files are not uploaded, instead there is a different format that is used with the extension .symbols. If you're not seeing that, then that points to an issue with how you create the .ipa file. What commands are you using to create it?

I don't see .symbols in my generated ipa

Following are the archive and export command we are using:

Archive command:

xcodebuild -project myproject.xcodeproj -scheme myproject -archivePath build/myproject_results.xcarchive archive

Export ipa command:

xcodebuild -exportArchive -archivePath build/myproject_results.xcarchive -exportPath ./build/ipa/ -exportOptionsPlist /path/to/ExportOptions.plist

What settings do you have in the export options plist file? You should have uploadSymbols as a key.

Your final .ipa file should contain symbol files according to this command:

% unzip -lv <ipaPath> | grep symbols

Thanks @edford for your response which helped me resolve the issue. My ExportOptions.plist on build machine had uploadSymbols flag <false/> I have changed it to <true/> and it works now

Is there a way we can upload dSYM file when we upload .ipa file to TestFlight via shell script
 
 
Q