SAS Sudalaiyandi
SAS Sudalaiyandi

Reputation: 237

When i run app extension(Widget) in device.I got this error App installation failed

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.

Upvotes: 11

Views: 10439

Answers (4)

Prashanth Thota
Prashanth Thota

Reputation: 166

You Bundle Identifier Should Look Like

1) Main Project---> com.CompanyName.ProjectName

2) NotificationService(ExtensionName) ---> com.CompanyName.NotificationService

3) NotificationContent(ExtensionName) ---> com.CompanyName.NotificationContent

Upvotes: 0

Chidi Emeh
Chidi Emeh

Reputation: 11

You will have to create two provisioning profile.

After you create the first one ending in product name... download and install

Then create another one like the first profile, ending with .Extension (like .Meme) ... download and install

If you build after the two steps above the Error might still appear.

Then go to the General where you have the bundle id ... add the .Extension (add it to what you have there like blahblahblah.Meme)

Then you will get an error and a suggestion to "Fix issues" ... Click on "Fix issues" and allow it to finish.

Then you should be able to build successfully and install. This is how it worked for me.

Upvotes: -1

Jasper
Jasper

Reputation: 7107

My bundle ID's were ok but I had to change some settings in my provisioning profiles to fix this error

Upvotes: 0

Meenakshi
Meenakshi

Reputation: 1162

If your application bundle identifier is com.companyName.productName then your extension bundle identifier should be com.companyName.productName.extensionName

If you assign the bundle identifier in this way then your provisioning profile will work for both.

Upvotes: 32

Related Questions