Command PhaseScriptExecution failed with a nonzero exit code, Xcode 12.4
Asked Answered
D

1

1

I am able to run my app on simulator. On real device however, I am asked to give my keychain password, whereafter the build fails with

Command PhaseScriptExecution failed with a nonzero exit code

From the log:

path/to/AppAuth.framework: errSecInternalComponent

I have tried to delete derived data, clean my project, restart both xcode and my machine, delete the workspace and podfile.lock and generate new ones. Nothing helps.

Any ideas? Is this a code signing/certificate issue?

I noticed that in my Xcode project navigator, under Pods/Frameworks, all frameworks are red, including AppAuth.framework. Looking at the frameworks full path in the Xcode file inspector, I notice that the path referred to does not exist. The path points to a 'Debug' folder under DerivedData/Products, but I only have a 'Debug-iphoneos', under which I can see the framework. I assume this explains the framework being red (ie cannot be found)?

Would "correcting" the full path perhaps solve all this, and how would I do that?

Dhoti answered 15/3, 2021 at 0:25 Comment(3)
got the same error,any solutions now? Xcode 12.5Bothnia
@Bothnia see my answer.Dhoti
i solve this by restart mac,reopen Xcode. gosh~Bothnia
D
0

Turned out I had some certificate duplicates. Once I got them sorted out the app compiles. Frameworks still red though.

Dhoti answered 15/3, 2021 at 14:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.