【问题标题】:Cannot get Ionic 5 to deploy to physical device: Command PhaseScriptExecution failed无法让 Ionic 5 部署到物理设备:命令 PhaseScriptExecution 失败
【发布时间】:2021-09-17 14:47:57
【问题描述】:

我正在尝试将 Ionic 5 项目部署到运行 iOS 14.6 和 XCode 11.4 的 iPhone 12。该应用程序在模拟器上运行良好,但在遵循官方说明here 后,我收到Command PhaseScriptExecution failed 错误,并且在此之前的日志中出现此错误:

Code Signing /Users/simonhill/Library/Developer/Xcode/DerivedData/App-buuhfmnvjxqcivakwsfsgrdpsrjw/Build/Products/Debug-iphoneos/App.app/Frameworks/Capacitor.framework with Identity Apple Development: xxx@gmail.com (7FSK2UE87Y)
/usr/bin/codesign --force --sign 7B0B8B04EB8EB60F0EB9540253FEC8FB09E379AC  --preserve-metadata=identifier,entitlements '/Users/simonhill/Library/Developer/Xcode/DerivedData/App-buuhfmnvjxqcivakwsfsgrdpsrjw/Build/Products/Debug-iphoneos/App.app/Frameworks/Capacitor.framework'
Warning: unable to build chain to self-signed root for signer "Apple Development: simonhill303@gmail.com (7FSK2UE87Y)"
/Users/simonhill/Library/Developer/Xcode/DerivedData/App-buuhfmnvjxqcivakwsfsgrdpsrjw/Build/Products/Debug-iphoneos/App.app/Frameworks/Capacitor.framework: errSecInternalComponent

我按照说明创建了我的 Apple 证书,但不知道如何解决此错误。我尝试了这个答案Error Xcode 10 . PhaseScriptExecution failed with a nonzero exit code: errSecInternalComponent,但无法让它发挥作用。

更新 可能是这个问题https://developer.apple.com/support/expiration/

已知问题 Xcode 11.4.0 及更早版本可能无法签署软件 使用新的 Apple Worldwide Developer 颁发的签名证书 关系认证中级证书。如果您无法 在您的构建中升级到支持版本的 macOS 或 Xcode 机器,您可以使用早期的 Xcode 构建和归档您的应用程序 客户端并使用最新版本对其进行签名以进行分发。 或者,您可以使用协同设计工具对您的软件进行签名 使用命令行。

肯定是这个问题:https://developer.apple.com/forums/thread/660087

【问题讨论】:

    标签: ionic-framework capacitor ionic5


    【解决方案1】:

    更新 XCode 解决了问题 (12.4)。

    【讨论】:

      猜你喜欢
      • 2018-09-27
      • 1970-01-01
      • 1970-01-01
      • 2021-09-09
      • 1970-01-01
      • 2023-03-12
      • 2020-05-15
      • 2016-03-26
      • 1970-01-01
      相关资源
      最近更新 更多