简体   繁体   English

Xcode 7.1 iOS 9.0 watchOS 2 应用在安装后停止运行

[英]Xcode 7.1 iOS 9.0 watchOS 2 app stops running after install

When I run my watch kit app (WatchOS 2) in Xcode 7, Swift, it installs and then finishes (stops).当我在 Xcode 7、Swift 中运行我的手表套件应用程序 (WatchOS 2) 时,它会安装然后完成(停止)。 No error messages, it just stops.没有错误消息,它只是停止。 I've uninstalled and re-install both the IOS app and the watch app.我已经卸载并重新安装了 IOS 应用程序和手表应用程序。 No luck.没运气。 Runs fine in the simulator.在模拟器中运行良好。 If I create a new empty project, same behavior.如果我创建一个新的空项目,同样的行为。 When I check the watch app on the watch, the new build is installed.当我检查手表上的手表应用程序时,安装了新版本。 It just doesn't run from Xcode so I can't get my debug messages.它只是不能从 Xcode 运行,所以我无法获得调试消息。 I am using the scheme for the IOS app and the Watch App.我正在为 IOS 应用程序和 Watch 应用程序使用该方案。 Is there anything to look for in the scheme config?在方案配置中有什么要找的吗? I have also recently updated my provisioning profile and development certificates.我最近还更新了我的配置文件和开发证书。

I've tried looking at similar questions, but so far they have not helped.我试过查看类似的问题,但到目前为止它们并没有帮助。

Xcode successfully builds my target, but does not run the product Xcode 成功构建了我的目标,但没有运行该产品

Debug/Run in Xcode stopped working. 在 Xcode 中调试/运行停止工作。 Executable settings are wrong and can't be fixed too 可执行设置错误,也无法修复

and similar to:并类似于:

"This app contains an app extension with an illegal bundle identifier" issue “此应用包含具有非法捆绑标识符的应用扩展”问题

There's several people with this problem.有几个人有这个问题。 I can't give you any tips for iOS 9.0 and XCode 7.1 (Besides, reseting everything and trying again).我无法为您提供有关 iOS 9.0 和 XCode 7.1 的任何提示(此外,重置所有内容并重试)。 But, If you update to watchOS 2.1, iOS 9.2 and XCode 7.2, everything works.但是,如果您更新到 watchOS 2.1、iOS 9.2 和 XCode 7.2,则一切正常。

连接设备后,关闭我的 iPhone 并观看,然后重新启动即可解决问题。

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

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