I'm uanble to generate *.symbol files for my iOS app on one of our build machines. It works fine on my local machine.
How can I point the sybmols tool to the correct dSYM paths?
xcrun symbols -printSummary -noTextInSOD -noDaemon -arch all -symbolsPackageDir SYMBOLS APPNAME.app/APPNAMEBad output:
/Volumes/build/.../APPNAME.app/APPNAME [armv7, 0.100518 seconds]:
SymbolOwners: 1 (0 dSYMs found, 1 MMap, 0 Raw)
Segments: 4
Sections: 31
Symbols: 48566
SourceInfos: 0
/Expected output:
build/.../APPNAME.app/APPNAME [armv7, 2.506779 seconds]:
SymbolOwners: 1 (1 dSYMs found, 1 MMap, 0 Raw)
Segments: 4
Sections: 31
Symbols: 80022
SourceInfos: 196526The first process produces a file with roughly 2mb of content, and does not correctly symbolicate app symbols when uploaded to the app store. The same invocation on my local machine produces symbol files with 20 mb of content, that work correctly on the App Store.
What can I do in an ssh session that will get the build machine to behave correctly (find the dSYM directory for the app)?
Spotlight is disabled on our build machines, which is causing the issue.
By mounting a temporary volume, and enabling spotlight on that volume, I can get the symbols to work, but the timing is highly indeterminate. Sometimes Spotlight indexes the symbol files right away; sometimes it takes up to a minute (the volume is 1 GiB in size).
Is there anyway that I can invoke the spotlight index process directly?