Iphone User
Iphone User

Reputation: 1950

Installing the app Extension to the device?

I am trying to install my application extension on my iPhone device, but I am getting the following error:

This application or a bundle it contains has the same bundle identifier as 
this application or another bundle that it contains. Bundle identifiers must be unique.

The app container have the bundle id: com.companyName.AppName and the bundle identifier for the app extension is com.companyName.AppName.WidgetApp.

I have tried to sign the extension with the same provisioning, also I have installed a different AppID from the apple developer site and new provisioning profiles for the App Extension and Also tried to set the signing for the extension Widget to Automatic but still the same error and the app cannot be launched on the device.

What should i do in order to install my application extension to the device?

Here are screenshots of my General Tab for both my app and the Extension:

App: enter image description here

Extension: enter image description here

Thank you.

Upvotes: 3

Views: 4925

Answers (3)

In Swift :

If you installed pods then you have to change bundle identifier as org.cocoapods.podName in general identity. Make sure deployment target of all pods should be same to the project’s deployment target.

Upvotes: -1

Andres Kievsky
Andres Kievsky

Reputation: 3491

I had this exact problem and it was due to having a duplicated framework included in the build. I had included both a test and non-test version of the same dynamic framework. Once I removed one, the installation proceeded as expected.

I'm sharing this in the hopes that it will help someone else in case they encounter this particularly obscure situation.

Upvotes: 1

Claudio Redi
Claudio Redi

Reputation: 68440

Executing a clean command worked for me.

This is done through the XCode menu item; Product > Clean or SHIFT + COMMAND + K

Upvotes: 4

Related Questions