Xcode 6 Error: "The entered binary package identifier does not have a prefix with the package identifier of the parent application."

I am trying to create an extension project, and Xcode continues to throw an error into the topic.

Xcode log error

In either case, the extension package identifier is prefixed with the application package identifier.

Product Name: ro.chitza.TodayPics.$(TARGET_NAME:rfc1034identifier

Extension bundle id

I tried to clear the build folder and rebuild, no luck. The funny thing is that the whole project was created several times, but after some changes to the code and user interface, it started to crash. Even if I create new projects, the same thing happens after about 5-6 builds.

Has anyone else encountered this error? Any tips for a solution or a workaround?

+44
ios8 xcode6 ios-app-extension
Jun 04 '14 at 18:56
source share
15 answers

Try to clean before assembly. This fixed the problem for me (Xcode 6b2).

+28
Jun 19 '14 at 15:16
source share

It appears that the behavior of the bundle identifier changed when WatchOS 2 appeared.

I used to have an expansion pack id:

 com.mycompany.myappname.watchkitextension 

Elsewhere in Stackoverflow, it was mentioned that the extension package identifier should be in this format, but no matter what I tried, Xcode kept throwing errors at me.

The only possible solution is to change the extension bundle identifier to:

 com.mycompany.myappname.watchkitapp.watchkitextension 

I am sure this is not the case with the WatchOS 1 application. The problem with this change is that you cannot generate the application identifier for the package identifier com.mycompany.myappname.watchkitextension . This is optional, just set all provisioning profiles in the build settings in automatic mode and don't forget to use the correct code signing certificate for the / ad -hoc / debug release schemes.

I really found out that this approach works because Xcode suggested fixing the problem, and that is what it did.

+25
Sep 30 '15 at 22:09
source share

I had to manually change the BundleID in the info.plist extension to what I needed.

I filed a radar: rdar: // 17487465

+14
Jun 27 '14 at 19:12
source share

it helped me:

The extension must have the identifier of the parent package as its prefix.

For example, if you are using the com.ronnathan.myapp application, your extension should be com.ronnathan.myapp.today. You renamed the application target, now go to the extension target and change the name to match.

taken here

+11
May 18 '15 at 12:03
source share

I made changes like:

Main Application Id : com.myapp.testapp

and

Extension extension pack identifier: com.myapp.testapp.myextension

and his work !!!

+7
Jan 03 '17 at 10:28
source share

Target-> General → Embedded Binaries remove the old ones and select the new one, this is how I solved this problem

+5
Nov 27 '15 at 4:11
source share

I got the same error, maybe you added an extension such as the Today widget, since the extension is also binary, so it has its own plist, and make sure the package identifier in the plist extension has the application package identifier prefix. Hope this helps.

+3
Jun 12 '14 at 22:04
source share

In my case, this error occurred when I changed the application package identifier. I also have a WatchKit app in my project.

To fix this, update the WatchKit Extension and WatchKit application package ID prefix with the new package ID of your application. Check info.plist for both.

Also update the following -

Update the following with the new monitoring application package identifier. Extension WatchKit> Info.plist - NSExtension-> NSExtensionAttributes-> WKAppBundleIdentifier

Update the following with a new application identifier. WatchKit App> Info.plist - WKCompanionAppBundleIdentifier

After changing all values, be sure to clean the product once.

+3
Jul 06 '15 at 11:57
source share

It may have happened that you duplicated your goals to make a clone app. For example, you selected each of your goals and duplicated them. When you clone your goal to increase the number of hours, its target membership can be automatically assigned to the original watch application.

To fix this, you will need to go to your source file “WatchKit extension.appex” in Project Navigator and deselect the target membership in File Inspector for your new clone-clock app target. You must do the opposite for your duplicate Watchkit extension-copy.appex and make sure that only the duplicate target "watch copy application" is selected in it.

+2
Mar 16 '16 at 21:28
source share

Make sure that:

Target App A → Built-in Settings → Code Signing → Release

matches with:

Target App A (Extension) → Built-in Settings → Code Signing → Release

+1
Feb 24 '15 at 11:00
source share

The problem is that you added the folder using “Create Folder Links” when adding it to your project (like me). @Jacob fix does not work for me :(

enter image description here

I had to remove the link to the folder that I added to my project, then clean and build, and this fixed it for me.

enter image description here

0
Jul 20 '14 at 20:43
source share

Just remove the application provisioning profiles from the profiles ~ / Library / MobileDevice / Provisioning Profiles, restart Xcode and fix the problems when Xcode requests (or manually downloads them from the dev center in iOS).

This problem is fixed for me.

0
Sep 26 '14 at 16:53
source share

I had the same problems. Changing the CFBundleIdentifier for my WatchKit extension for something other than the original value used when I first added the WatchKit extension and re-configured access rights to the common application group has been fixed for me.

0
May 04 '15 at 17:27
source share

I just empty the derived folder and it helps me in these situations.

0
Jan 12 '16 at 20:06
source share

Go to each goal> Build Settings> Product Package Identifier> (Rename anything)

-one
Nov 22 '16 at 17:43
source share



All Articles