无法安装应用程序错误:无效的捆绑包 - 没有Apple Watch二进制文件
问题描述:
我正在尝试为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,错误:无效的捆绑包 - 没有Apple Watch二进制文件
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>
对于我的应用,我有:
<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.