无法安装应用程序错误:无效的捆绑包 - 没有Apple Watch二进制文件

eja*_*ski 11 ios apple-watch

我正在尝试为Apple Watch开发我的应用程序的扩展.

我没有在手表上安装应用程序,而是出现此错误:

AppName无法安装AppName,错误:无效的捆绑包 - 没有Apple Watch Binary

在我的info.plist文件中......

对于扩展,我有:

<key>CFBundleIdentifier</key>
    <string>com.mycompany.AppName.watchkitextension</string>
<key>WKAppBundleIdentifier</key>
    <string>com.mycompany.AppName.watchkitapp</string>
Run Code Online (Sandbox Code Playgroud)

对于WatchKit应用程序,我有:

<key>CFBundleIdentifier</key
    <string>com.mycompany.AppName.watchkitapp</string>
<key>WKCompanionAppBundleIdentifier</key>
    <string>com.mycompany.AppName</string>
Run Code Online (Sandbox Code Playgroud)

对于我的应用程序,我有:

<key>CFBundleIdentifier</key>
    <string>com.mycompany.AppName</string>
Run Code Online (Sandbox Code Playgroud)

我错过了什么?

Dan*_*ser 16

这个错误困扰了我大约7个小时,然后我从绝望中重新启动了我的手表,错误就消失了.


Soh*_*ail 2

尝试在 WatchKit 应用程序的 info.plist 中显式设置“可执行文件”。

我更改了可执行文件的名称并遇到了同样的问题。