WatchKit应用程序不会在模拟器上运行 [英] WatchKit app wont run on simulator

查看:101
本文介绍了WatchKit应用程序不会在模拟器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:WatchKit扩展程序不包含任何WatchKit应用程序。
验证WatchKit App的Info.plist中WKWatchKitApp的值是否设置为YES。

我一直收到此错误,在这里搜索了所有其他问题之后不知道为什么,花了很长时间才弄清楚这一点。

I kept getting this error and didn't know why after searching all the other questions here, took forever to figure this out.

推荐答案

解决方案非常简单。前段时间我删除了一些文件并将它们重新添加到扩展名中,但它们没有被添加回编译源。

The solution was really simple. A while back I had removed a few files and re-added them to the extension, but they didn't get added back to compile sources.

添加了exention的.m文件回到它的编译源,错误就消失了。

非常误导性的错误信息。

Very misleading error message.

这篇关于WatchKit应用程序不会在模拟器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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