yukiarrr / ios-build-action

Build iOS project (.xcodeproj, .xcworkspace), and export ipa
MIT License
279 stars 135 forks source link

Warning: unable to build chain to self-signed root for signer #84

Closed uugan0486 closed 1 year ago

uugan0486 commented 1 year ago

Hello, i'm running self hosted macOS runner in Vmware and getting error.

It works on GitHub hosted runners but not on self hosted and i don't know where exactly i need to look for to fix.

Code Signing /Users/githubci/Library/Developer/Xcode/DerivedData/****-abbcrqynhbaxnaeeyniwmqmqnujh/Build/Intermediates.noindex/ArchiveIntermediates/****/InstallationBuildProductsLocation/Applications/****.app/Frameworks/hermes.framework with Identity iPhone Distribution: ****
/usr/bin/codesign --force --sign FAA7FA6CB418FCA5988FBD8D7D36C869ADA29934  --preserve-metadata=identifier,entitlements '/Users/githubci/Library/Developer/Xcode/DerivedData/****-abbcrqynhbaxnaeeyniwmqmqnujh/Build/Intermediates.noindex/ArchiveIntermediates/****/InstallationBuildProductsLocation/Applications/****.app/Frameworks/hermes.framework'
Warning: unable to build chain to self-signed root for signer "iPhone Distribution: ****"
/Users/githubci/Library/Developer/Xcode/DerivedData/****-abbcrqynhbaxnaeeyniwmqmqnujh/Build/Intermediates.noindex/ArchiveIntermediates/****/InstallationBuildProductsLocation/Applications/****.app/Frameworks/hermes.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
qs-wang commented 1 year ago

Apple has updated Developer Relations Intermediate Certificate. Just download the certificate from here and install it. If the it doesn't works have a look on https://developer.apple.com/support/expiration/

Install the cert file on your build machine

uugan0486 commented 1 year ago

@qs-wang Thank you so much, it worked.