Xcode - 启动 WatchKit 扩展时出错 [英] Xcode - Error launching WatchKit Extension

查看:30
本文介绍了Xcode - 启动 WatchKit 扩展时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功构建了一个基本的 Watch/iPhone 应用程序,但在尝试在我的设备上运行时出现以下错误:

I've successfully built a basic Watch/iPhone app and am getting the following error when trying to run on my devices:

启动‘app_name WatchKit 扩展’时出错

"Error Launching 'app_name WatchKit Extension'

无法完成操作.无法启动,因为它的代码签名无效、权限不足或用户未明确信任其配置文件."

The operation couldn’t be completed. Unable to launch because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user."

该应用确实安装到手表/手机上,但我想在运行该应用时使用该扩展程序查看控制台输出.

The app does install to the watch/phone, but I want to use the extension to view console output while running the app.

我正在使用自动配置,它没有给出任何错误.我没有使用 Apple 的付费开发者计划.有没有人经历过这种情况?干杯.

I am using automatic provisioning, which is not giving any errors. I am not using Apple's paid developer program. Has anybody experienced this before? Cheers.

推荐答案

我通过第一次在 Apple Watch 上打开应用程序,然后在出现的提示中选择信任开发者"解决了这个问题.

I resolved this by opening the app on the Apple Watch for the first time, then selecting "Trust developer" on the prompt that appeared.

这篇关于Xcode - 启动 WatchKit 扩展时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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