invalid bundle no apple watch binary

The app build successfully but couple seconds later Xcode throw this (topic) error at me. Anyone run into similar issue? I've checked the Executable file name in info.plist and everything match.

Same problem here.

Ditto

Check your project deployment target. I dropped this to an earlier version (from 8.4 to 8.2), and then the watch that was paired to an iPhone running 8.3 was able to run the app.

Same problem here. Changing deployment target version as mentioned below did not fix it unfortunately. =\

Still can't get this to work.

None of the answers supplied to this or the WKAppBundleIdentifier topic have helped.

Or stackoverflow.

The wwdc 2015 demo explains how to add a watchkit target to an existing app but they never actually do it. They used some pre-prepared files.

Do the watchkit target app and extension files added need to be called something special?

Did you successfully add the watch kit extension?


I had a WatchOS 1.0 extension under ios 8.3 that built fine and ran okay. After I reconfigured for ios 9.0 targets, I tried to add an extension delegate to it to make the code WatchOS 2.0 compatible, but it didn't work, so I just decided to add another a WatchKit extension. Things still didn't work with two watchkit extensions, so I moved my 1.0 interface controller code and other resources to the 2.0 target and then I deleted the 1.0 target altogether. Things started to gel after that.


Hope this helps.

Thanks for the reply.

I wonder if the problem is I didn't start with a WatchOS 1.0 project.

I have an example from Thai, Kristina that works. My plan is to use her project/framework and integrate my iOS app in place of hers.

To give xcode whatever it apparently needs.

This isn't for a commercial project, just me trying to get my own watch to do some tricks.

Again, thanks for the help.


Update: Still not working with Beta 4

I got this after renaming my bundle identifer for the main app. I had to make the same change to all the other .plist files, including one nested as NSExtension.NSExtensionAttributes.WKAppBundleIdentifier, albeit adding a .watchkitapp extension, to get it working again.

I was solved in the following way.

If it might be effective if you do not have [Embed Watch Content] to [Build Phases].


1. Select project settings TARGETS -> ios app

2. Select Build Phases.

3. Click [+] and [New Copy Files Phase]

4. Modify Copy Files Section that added.

4-1. Destination:[Products Directory]

4-2. Subpath:$(CONTENTS_FOLDER_PATH)/Watch

4-3. Select [+] , and add target watchApp.

4-4. Copy Files Section name modify. (ex:Embed Watch Content)


I hope this helps.

Same problem here. For me it looks like the problem started after watchOS2.2.

Any news guys?

invalid bundle no apple watch binary
 
 
Q