Trying to archive 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


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

Thanks.
Are you building on the same machines or different machines?

If different machines, you may need to manually download the new WWDR intermediate certificate and install it in the keychain.
I am going to build on different machines. I will manually download the new WWDR intermediate certificate.
Trying to archive safari app extension in xcode 10.3 and sign it using xcode 11.4.1
 
 
Q