Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OS X Terminal Zip Utility Doesn't Work with dSYM files

I'm trying to zip an iOS dSYM file to upload to Xamarin Insights with a shell script (we're using VSTS release management with a locally hosted Mac OS X build agent).

I'm trying to figure out how to zip up the dSYM file, so I'm trying this command in the Mac Terminal:

$ cd /path/to/ipa/folder
$ zip SymbolFiles.zip *.dSYM

The output is:

updating: MyApp.app.dSYM/ (stored 0%)

The resulting zip file is only 206 bytes while the dSYM file is 127.2MB. When I unzip the resulting SymbolFiles.zip I get a 0 byte MyApp.app.dSYM file.

Any ideas?

I've also tried

$ cd /path/to/ipa/folder
$ zip SymbolFiles.zip MyApp.app.dSYM
like image 591
Seafish Avatar asked Dec 06 '22 18:12

Seafish


2 Answers

dSYM files are technically folders, so you need to do a recursive compression.

Try

zip -r SymbolFiles.zip MyApp.app.dSYM

or

zip -r SymbolFiles.zip *.dSYM

Look here for more details on command line parameters.

like image 74
Jan Gassen Avatar answered Dec 08 '22 08:12

Jan Gassen


I ran into this same confusing issue.

If you are INSIDE of a "Show Package Contents" option you cannot zip a file in there. eg. trying to zip the dsym inside of a .xcarchive

  • copy (do not move) the file(s) to the desktop
  • right click > compress; or otherwise zip

violá

like image 31
Jacksonkr Avatar answered Dec 08 '22 06:12

Jacksonkr