问题描述
验证您的 WatchKit App 的 Info.plist 中 WKWatchKitApp 的值是否设置为 YES.
Verify that the value of WKWatchKitApp in your WatchKit App's Info.plist is set to YES.
推荐答案
经过数周又数周的调查,我终于找到了问题所在.
After weeks and weeks of investigations i finally found out the problem.
Iphone App 的产品名称与 Watch App 的产品名称相同.
The product name of the Iphone App was the same as the product name of the Watch App.
一旦我更改了 WatchApp 的产品名称,它就起作用了.
Once i changed the Product Name of the WatchApp it worked.
去你的目标.选择手表应用目标去构建设置.搜索产品名称编辑您的产品名称,使其与 App Target 不同!清洁和建造.应该管用.谢谢
go to your targets. Select the watch app targetgo to build settings. Search for Product NameEdit your Product name to be different than the App Target!Clean and Build. Should Work. Thanks
这篇关于错误:WatchKit 扩展不包含任何 WatchKit 应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!