繁体   English   中英

iOS 应用程序将无法在 iPhone iOS 13.6 上运行,来自 Xcode 11.6

[英]iOS app will not run on iPhone iOS 13.6 from Xcode 11.6

我正在尝试在我的 iPhone 上运行 IOS 应用程序。 在升级我的 iPhone 或 XCode 之前,我能够 - 我不确定它什么时候不起作用。 该应用程序可以在模拟器上运行,但不能在 iPhone 上运行。 该应用程序成功构建,但随后出现错误“无法启动 net.jimbarry.Clima,当我查看详细信息时,他们会说:

Details
Unable to launch net.jimbarry.Clima
Domain: com.apple.platform.iphoneos
Code: -12

Request to launch net.jimbarry.Clima failed.
Domain: com.apple.dt.deviceprocesscontrolservice
Code: 2
Failure Reason: The operation couldn’t be completed. Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier 'net.jimbarry.Clima'.

The operation couldn’t be completed. Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Domain: FBSOpenApplicationErrorDomain
Code: 3
Failure Reason: Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
User Info: {
    BSErrorCodeDescription = Security;
}

系统信息

  • macOS 版本 10.15.5(内部版本 19F101)
  • Xcode 11.6 (16141)
  • 我的 iPhone 上有 IOS 版本 13.6
  • 我正在运行 MacOS Catalina 版本 10.15.5

我试过了:

  • 清理我的项目(CMD + SHIFT + K)
  • 重启 XCode
  • 重新启动 Mac
  • 重新启动 iPhone

我永远无法让我的应用程序在我的 iPhone 上运行,所以我最后只是尝试点击之前创建的应用程序图标,屏幕上出现了一个弹出窗口,标题为“不受信任的开发者”,然后是“您的设备管理设置”不允许在此 iPhone 上使用来自开发人员“Apple Development: xxxxx”的应用程序。您可以在“设置”中允许使用这些应用程序。然后我搜索了错误,此链接解决了我的问题 - https://howtoapple.com/how-to-trust -不受信任的企业开发人员/

这显然是一个证书问题。 如果它已安装但未在设备上运行,则在大多数情况下,个人为调试版本设置了错误的证书。 要么缺少授权(位置、iCloud 等权限),要么我经常看到使用发布证书进行调试构建,尤其是在安装但未启动的情况下。

暂无
暂无

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

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