简体   繁体   中英

An empty identity is not valid when signing a binary for the > product type 'App Extension' while making a build from Command Line- xcodebuild build

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.

Thanks @CraigSiemens 🙌🏻 I updated my build command to

sh "set -o pipefail && xcodebuild build CODE_SIGNING_REQUIRED=NO - -workspace '../ProjectName.xcworkspace' -scheme 'ProjectName' | tee /Users/bamboo/Library/Logs/gym/ProjectName.log | xcpretty"

And it is working perfectly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM