Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator
Go to
Keychain Access
-> Right-click on login
-> Lock & unlock again
Xcode
-> Clean Xcode project
->Make build again
In my case the error was caused by the lack of space on my machine. Deleting old builds fixed the problem.
try this step if you need: Xcode 11.5 1- open terminal: cd Path_project 2- cd pod clean 3- pod install
1- open Build Phases for target -> [CP] Embed Pods FrameWork check this field
By mistake I had uninstalled carthage
from my system. Adding that fixed the issue for me.
Step 1: Download & install latest carthage DMG here: Carthage
Step 2:
carthage update --platform iOS --cache-builds
Step 3: Run project & enjoy. :)
Another reason for the error might be is that Xcode is running a script during the run phase.
If this is the case, you have 2 options:
Delete the script (makes sense if the script is NOT important)
Modify/update the scripts location path (Xcode might not be able to locate the script)
In my case, the script was important, so I modified/updated its location.
Originally, the script location path was written like this:
$SRCROOT/scripts/clean-assets.sh
Because the scripts path contained spaces (I moved the project to a new directory), I changed the path to this:
"$SRCROOT"/scripts/clean-assets.sh
By adding quotes to SRCROOT, changing it to "$SRCROOT", the error will go away.
I had a similar error
/{path to project root}/Pods/Target Support Files/Pods-{project name}/Pods-{project name}-frameworks.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
In my case I had received a zip of a repo that included the Pods folder. It turns out that at some point between it being originally created and sent to me, the *.sh files in Pods/Target Support Files/Pods-{PROJECT}/
had all lost their execute permissions. Giving those files +x
was the solution