CodeSign error: the product type "Application Extension" in the SDK "iOS 8.0" requires code signing,

"I'm going to download a binary copy of my application that contains the application extension, but it gives errors that

The identifier of the containing application does not match the Extension application. CodeSign error: code signing is required for the product type "AppExtension" in the "iOS 8.0" SDK. The Provisioning profile does not match the package ID. The provisioning profile specified in the build settings ("Profile Name") has the AppID "com.CompanyName.AppName" that does not match your package ID "com.CompanyName.AppName.ExtensionName"

If we use the same Bundle identifier, it gives an error during binary loading.

"The app extension is not signed with the valid Provisioning certificate" Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target code sign settings match the parent app's. 

Any suggestion would be appreciated. thanks

+5
source share
2 answers

I solved it by creating a separate package identifier and distribution profile for each container application and application extension. You must assign a primary container application identifier to create the application in the repository.

+2
source

Each extension is a separate goal, as a host application. For example, if you have 3 extensions, you will need 4 package identifiers, each of which includes a host application, and 4 preparation profiles for each of them.

Each target has its own set of settings, so if the host application and extensions support CloudKit, you need to enable CloudKit for each application identifier.

Just treat them as separate applications.

+9
source

Source: https://habr.com/ru/post/1203282/


All Articles