Failed to install app error: Invalid Bundle - No A

2020-02-09 09:20发布

I'm trying to develop an extension of my app for the Apple Watch.

Instead of install the app on the watch, I have this error:

AppName Failed to install AppName, error: Invalid Bundle - No Apple Watch Binary

In my info.plist files...

For the extension, I have:

<key>CFBundleIdentifier</key>
    <string>com.mycompany.AppName.watchkitextension</string>
<key>WKAppBundleIdentifier</key>
    <string>com.mycompany.AppName.watchkitapp</string>

For the WatchKit app, I have:

<key>CFBundleIdentifier</key
    <string>com.mycompany.AppName.watchkitapp</string>
<key>WKCompanionAppBundleIdentifier</key>
    <string>com.mycompany.AppName</string>

And for my app, I have:

<key>CFBundleIdentifier</key>
    <string>com.mycompany.AppName</string>

Did I miss something?

10条回答
Lonely孤独者°
2楼-- · 2020-02-09 09:57

Filling in the Bundle Display name in the info.plist.Default is blank,there will be an alert.(Xcode 7.3)

enter image description here

查看更多
戒情不戒烟
3楼-- · 2020-02-09 09:58

In my case, I got it when building app for WatchOS2. I fixed by setting the schemes like this:

The Watch Extension Scheme builds 3 Target: iPhone (2 dependencies) + Extension (no dependencies) + Watch App

Running Extension Scheme on iPhone simulator -> works!
查看更多
再贱就再见
4楼-- · 2020-02-09 10:00

In my case, none of these solutions worked for me, however I noticed that by default, my WatchKit App required iOS 8.3, and my phone was running iOS 8.2. Updating the OS to 8.3 solved my problem. It may seem like an obvious solution, but I thought I would share for anyone who could share my problem.

查看更多
欢心
5楼-- · 2020-02-09 10:01

In my case it was an Info.plist configuration error. The Bundle identifier was different to the NSExtension -> NSExtensionAttributes -> WKAppBundleIdentifier.

Setting the same value fixed the error.

查看更多
登录 后发表回答