Xcode is no longer able to test the actual machine. "Command PhaseScriptExecution failed with anonzero exit code" error

Asked 1 years ago, Updated 1 years ago, 438 views

I suddenly couldn't do the actual machine test on Xocde yesterday.

The error statements are as follows:

Command PhaseScriptExecution failed with anonzero exit code

Near the error statement were the following statements:

PhaseScriptExecution [CP]\Embed\Pods\Frameworks/Users/◯◯ //Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Intermediatees.noindex/demo.builder/dubuilder (Demo)Script-024CAB14D5D4ECD45067AA1C.sh
    cd/Users/◯◯ //Documents/GitHub/demoapp
    /bin/sh-c/Users/◯◯ //Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqcqafwplsfrvhdggep/Build/Intermediates.noindex/demo2.build/Debug-iphoneos/demo2.build/Script-024CAB14D5D4ECD45067AA1C.sh

mkdir-p/Users/◯◯ //Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Products/Debug-iphoneos/demo2.app/Frameworks
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/◯◯◯/Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Products/Debug-iphoneos/AppAuth/AppAuth.framework" "/Users/◯◯◯/Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Products/Debug-iphoneos/demo2.app/Frameworks"
building file list... done
deleting AppAuth.framework/_CodeSignature/CodeResources
deleting AppAuth.framework/_CodeSignature/
AppAuth.framework/

sent 146 bytes received 26 bytes 344.00 bytes/sec
total size is 441267 speedup is 2565.51
Code Signing/Users/◯◯ //Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Products/Debug-iphoneos/demo2.app/Frameworks/AppAuth.framework with Identity Apple Development(XXXXXXXX)
/usr/bin/codesign --force --sign F6B2CB887D02116C81F80A6FD8D4F3C7E29CC2BF --preserve-metadata=identifier, entries '/Users/◯◯ //Library/Developer/Xcode/DeliveredData/demo2-cuxcuxtcawdufflufflufflufflufflufflufflufflfffff
Warning: enable to build chain to self-signed root for signer "Apple Development: ◯◯ ((XDS7AXXXBG)"
/Users/◯◯ //Library/Developer/Xcode/DerivedData/demo2-cuxtcawdfrqcqafwplsfrvhdggep/Build/Products/Debug-iphoneos/demo2.app/Frameworks/AppAuth.framework:errSecInternalComponent
Command PhaseScriptExecution failed with anonzero exit code

What came out after searching online ↓

·After locking all key chains, test the actual machine
·Restart Mac
·Reboot Xcode
·Reboot iPhone
·Re-create certificate with Apple Developer
·Log out Apple ID from Xcode

I tried it, but there was no particular change.

Xcode→Preference→Account→Manage Certificates displays the following:

Hidden Name

Since the simulator can be activated, I think the cause is related to the certificate and keychain, but what is the cause?

I would appreciate it if someone could tell me the cause and solution.

swift ios xcode macos swift5

2022-09-30 21:55

1 Answers

Re-start all Certificates and profile-related files from 0

From Apple Developer Certificates

Worldwide Developer Relations Certificate Authority (Expiring 02/07/2023)

It has been fixed by adding .

Thank you for your cooperation.


2022-09-30 21:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.