Since upgrading to Xcode 9.3 I can not export my archive because it reports:
Profile doesn't match the entitlements file's value for the application-identifier entitlement.
If I look in the embedded.mobileprovision file for etension I see that the application-identifier in the entitelments is for the host app and not the extension.
I am building the app using xcodebuild:
xcodebuild -verbose clean archive -project projects/IOSExtDummy/IOSExtDummy.xcodeproj -scheme IOSExtDummy -configuration Release -archivePath bin/plugins.xcarchive HEADERMAP_INCLUDES_PROJECT_HEADERS=NO USE_HEADERMAP=NO PROVISIONING_PROFILE_SPECIFIER=FooBar_dev CODE_SIGN_IDENTITY="iPhone Developer" CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=W4Zxxxxx PRODUCT_BUNDLE_IDENTIFIER=com.foo.bar
If I build it with the Xcode GUI it is OK.
Can anybody shed some light on this? I have already spent a long day trying to sort this out.