After uninstalling the Extension app, the app installation error still appears. This app contains an app extension with an invalid bundle id

"This app contains an app extension with an illegal bundle identifier. App extension bundle identifiers must be prefixed with their containing app bundle identifier, followed by a."

I used to create a widget extension in my project, after a while I removed it, today I tried to run the application on my iPhone. I got this error.

It works well on a simulator. And I'm trying to install on other iPhones, it works well too. I guess this is a physical device issue. I tried uninstalling and reinstalling the app and rebooting my device but it didn't work and I checked again that my project does not have extension target or any file, I still get the same error.

+3


source to share


2 answers


I had the same problem. It turns out, you just need to clean the project and build a folder with this shortcut command+ option+ shift+k



+2


source


"This app contains an app extension with an invalid bundle identifier. App extension bundle identifiers must be prefixed with their containing app bundle identifier, followed by." ".

The app and the app extension have their own package identifiers. The extension ID must be the same as the application ID plus an extension that starts with "." In other words, if your ID is an app bundle com.mycompany.myappname

, all bundle extensions should be of the form com.mycompany.myappname.myextensionname

. You can replace myextensionname

it with anything, but the extension ID should be, well, an extension to the application bundle ID.



You need to look at your App Bundle ID and Extension Bundle ID and fix them to match this rule. Removing and reinstalling, cleaning and rebuilding, etc. Will have no effect if package IDs do not follow the rule. This is why I asked (in a comment) what your bind IDs are - because they are causing the problem, and changing them is the only way to fix it.

0


source







All Articles