首页 > 解决方案 > xcode 构建到 iPhone 设备它具有无效的代码签名

问题描述

我想在我的 iPhone 上构建我的项目,我收到了这个错误信息

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

我试图去,settings> general> VPN and device management但里面什么都没有,我只能使用工作或学校帐户登录,没有别的。我的应用程序没有出现在 VPN 和设备管理部分,因此我无法授权任何内容。我该如何解决?谢谢。

Xcode 13.0 iPhone X iOS 15

标签: iosxcode

解决方案


这解决了我的情况。

iPhone Settings -> General -> VPN and device management -> From "Developer App" section found "Apple Development: APPLE_ID" -> Trust 

看截图:

在此处输入图像描述 在此处输入图像描述


推荐阅读