简体   繁体   English

Xcode是否永久性地破坏了我针对WatchKit的能力?

[英]Has Xcode permanently screwed up my ability to target WatchKit?

I have an Apple Watch app. 我有一个Apple Watch应用。 Recently, Xcode and the Simulator started failing to load the WatchKit App on the Watch Simulator. 最近,Xcode和模拟器开始无法在Watch Simulator上加载WatchKit App。 It would only show a black screen, and occasionally crash to exit. 它只会显示黑屏,偶尔会崩溃退出。

Not sure why, and none of the google suggestions have helped. 不知道为什么,谷歌的建议都没有帮助。

I thought I'd create a new project, to see if I could compare settings. 我以为我会创建一个新项目,以查看是否可以比较设置。 But when I add the WatchKit target to the project, Xcode only gives me a scheme to run the WatchKit app on "My Mac" as a destination. 但是,当我将WatchKit目标添加到项目中时,Xcode仅为我提供了一种方案,以便在“ My Mac”上将WatchKit应用作为目标运行。

WatchKit App的目的地是“ My Mac”

Try as I might, I can't get a device to show up. 尝试尝试,我无法显示设备。 The Build Settings specify an iOS Base SDK, and iOS as the Supported Platforms for all targets. 构建设置将iOS基本SDK指定为iOS,并将iOS指定为所有目标的支持平台。

Is this a pull the plug and re-install Xcode situation? 这是拔插头并重新安装Xcode的情况吗? Strange thing is its a relatively new installation and I'll I've done is code; 奇怪的是它是一个相对较新的安装,我要做的是代码; no messing around with any behind the scenes files. 不会在后台文件中乱七八糟。 As I'm having trouble with the Watch Simulator in general, I guess it's a deep issue which needs a 'start over' approach- does anyone please have any steps I might try? 由于我通常在使用Watch Simulator时遇到问题,我想这是一个深层问题,需要“重新开始”方法-是否有人可以采取任何措施?

This issue is related to a bug in XCode. 此问题与XCode中的错误有关。

See the bug report here: http://www.openradar.appspot.com/19776564 在此处查看错误报告: http : //www.openradar.appspot.com/19776564

Best option is to close XCode then trash as much of your 最好的选择是关闭XCode,然后将尽可能多的垃圾丢弃

  • Derived Data, 派生数据
  • Simulator working folders, 模拟器工作文件夹,
  • other temporary/build folders; 其他临时/构建文件夹; and
  • xcuserdata files xcuserdata文件

as possible (preferably copy them to a safe place from which they can be restored first). 尽可能(最好将它们复制到安全的位置,以便可以首先从中恢复它们)。 Then restart XCode. 然后重新启动XCode。

Took a long time to resolve this one. 花了很长时间解决这一问题。 XCode 6 and XCode 7 are both of very poor quality. XCode 6和XCode 7的质量都很差。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM