I have been using the following command:
sh "set -o pipefail && xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -UseModernBuildSystem=0 -workspace '../ProjectName.xcworkspace' -scheme 'ProjectName' | tee /Users/bamboo/Library/Logs/gym/ProjectName.log | xcpretty"
It only works if I select to use the Legacy build system. It gives an error for the extensions as below:
❌ error: An empty identity is not valid when signing a binary for the
product type ‘App Extension’. (in target ‘WidgetExtension’ from
project ‘ProjectName’) error
I am using Xcode 13.1 on Big Sur. Signing is managed automatically.
It works fine with the legacy build system.
I am wondering, how reliable the solution is and what can be the alternate solution? Please share your thoughts. Thanks in advance.
Leave an answer