Trying to build safari app extension in xcode 10.3 and sign it using xcode 11.4.1

Hi,

We are building our app in xcode 10.3 using xcodebuild command line tool.
Currently our certificate got expired, so we created a new certificate which is issued from the new intermediate Apple Worldwide Developer Relations. When we try to build with the new certificate, we faced the following issue

error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.

So, as mentioned in the following documentation
https://developer.apple.com/support/wwdr-intermediate-certificate/
we tried to archive our build in xcode 10.3 and sign it using xcode 11.4.1.

Currently we are using the following commands to archive and export the app in xcode 10.3(Codesigning is happening in the end by default)
Code Block
xcodebuild -scheme "test" -configuration $CONFIG clean archive -archivePath $ARCHIVE_PATH
xcodebuild -exportArchive -archivePath $ARCHIVE_PATH -exportOptionsPlist ExportOptions_config.plist -exportPath $BUILD_DIR


I tried to use CODE_SIGNING_REQUIRED=NO to disable the codesigning and it's not working. Do I need to add any other switches to disable the code signing?

It would be helpful if I get some guidance in archiving in xcode 10.3 and signing in xcode 11.4.1

Thanks.


Answered by Gowtham350 in 672146022
For Code signing to get skipped, I have to use CODE_SIGN_IDENTITY="" as well.
Accepted Answer
For Code signing to get skipped, I have to use CODE_SIGN_IDENTITY="" as well.
Trying to build safari app extension in xcode 10.3 and sign it using xcode 11.4.1
 
 
Q