While following the documentation I encountered an issue while building for iOS for App Store / Testflight distribution that necessitated a change to the permission of the file "usymtool".
Here's the log:
warning: Run script build phase 'Unity Process symbols' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Unity-iPhone' from project 'Unity-iPhone')
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Unity\ Process\ symbols /Users/runner/Library/Developer/Xcode/DerivedData/Unity-iPhone-fspqhayqvhrnvthcqgdyuzoxkiww/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Script-C9134D649CBEB69C06B62AC4.sh (in target 'UnityFramework' from project 'Unity-iPhone')
(1 failure)
[17:13:57]: Exit status: 65
As you can see, not much info, but the problem was with the "Unity Process symbols" step which call "process_symbols.sh" which call "usymtool", which had it's execute permission lost while packaging the artifact.
My Unity version 2021.1.28f1 (iOS)
Changes
Added permission fix when building for App Store (iOS)
Checklist
[x] Read the contribution guide and accept the
code of conduct
While following the documentation I encountered an issue while building for iOS for App Store / Testflight distribution that necessitated a change to the permission of the file "usymtool".
Here's the log:
As you can see, not much info, but the problem was with the "Unity Process symbols" step which call "process_symbols.sh" which call "usymtool", which had it's execute permission lost while packaging the artifact.
My Unity version 2021.1.28f1 (iOS)
Changes
Checklist