无法安装应用程序错误:Invalid Bundle - No Apple Watch Binary [英] Failed to install app error: Invalid Bundle - No Apple Watch Binary
问题描述
我正在尝试为 Apple Watch 开发我的应用扩展.
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 安装 AppName 失败,错误:Invalid Bundle - No Apple Watch Binary
AppName Failed to install AppName, error: Invalid Bundle - No Apple Watch Binary
在我的 info.plist 文件中...
In my info.plist files...
对于扩展,我有:
<key>CFBundleIdentifier</key>
<string>com.mycompany.AppName.watchkitextension</string>
<key>WKAppBundleIdentifier</key>
<string>com.mycompany.AppName.watchkitapp</string>
对于 WatchKit 应用,我有:
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>
我错过了什么吗?
推荐答案
尝试在 WatchKit 应用的 info.plist 中显式设置可执行文件".
Try explicitly setting the "Executable file" in the WatchKit app's info.plist.
我更改了可执行文件的名称并遇到了同样的问题.
I had changed the name of my executable file and had the same issue.
这篇关于无法安装应用程序错误:Invalid Bundle - No Apple Watch Binary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!