错误:WatchKit 扩展不包含任何 WatchKit 应用程序. [英] Error: WatchKit Extension doesn't contain any WatchKit apps.

查看:42
本文介绍了错误:WatchKit 扩展不包含任何 WatchKit 应用程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

验证您的 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 target go to build settings. Search for Product Name Edit your Product name to be different than the App Target! Clean and Build. Should Work. Thanks

这篇关于错误:WatchKit 扩展不包含任何 WatchKit 应用程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆