无法让 Ionic 5 部署到物理设备:命令 PhaseScriptExecution 失败
Cannot get Ionic 5 to deploy to physical device: Command PhaseScriptExecution failed
我正在尝试将 Ionic 5 项目部署到 iPhone 12 运行 iOS 14.6 和 XCode 11.4。该应用程序在模拟器上运行良好,但在按照官方说明 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/:
Known Issues Xcode 11.4.0 and earlier may not be able to sign software
using signing certificates issued by the new Apple Worldwide Developer
Relations Certification Intermediate Certificate. If you’re unable to
upgrade to a supporting version of macOS or Xcode on your build
machine, you can build and archive your app using an earlier Xcode
client and sign it for distribution using the latest release.
Alternatively, you can utilize the codesign tool to sign your software
using the command line.
更新 XCode 修复了问题 (12.4)。
我正在尝试将 Ionic 5 项目部署到 iPhone 12 运行 iOS 14.6 和 XCode 11.4。该应用程序在模拟器上运行良好,但在按照官方说明 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/:
Known Issues Xcode 11.4.0 and earlier may not be able to sign software using signing certificates issued by the new Apple Worldwide Developer Relations Certification Intermediate Certificate. If you’re unable to upgrade to a supporting version of macOS or Xcode on your build machine, you can build and archive your app using an earlier Xcode client and sign it for distribution using the latest release. Alternatively, you can utilize the codesign tool to sign your software using the command line.
更新 XCode 修复了问题 (12.4)。