xcode 构建到 iPhone 设备时它具有无效的代码签名

lig*_*ter 9 xcode ios

我想在 iPhone 中构建项目,但收到此错误消息

\n
The operation couldn\xe2\x80\x99t be completed. \nUnable to launch com.xxxx.test because it has an invalid code signature, \ninadequate entitlements or its profile has not been explicitly trusted by the user.\n
Run Code Online (Sandbox Code Playgroud)\n

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

\n

Xcode 13.0\niPhone X iOS 15

\n

小智 9

这解决了我的案子。

iPhone Settings -> General -> VPN and device management -> From "Developer App" section found "Apple Development: APPLE_ID" -> Trust 
Run Code Online (Sandbox Code Playgroud)

看截图:

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