Xcode build error "The file could n’t be saved."
The build error is below: /bin/sh -c /Users/xxxx/Library/Developer/Xcode/DerivedData/xxxxx-fmaccoypantpmwcbvalvgebzktwd/Build/Intermediates.noindex/xxxxx.build/Debug-iphonesimulator/xxxx.build/Script-2D6F48152518F1F300CCDBE0.sh
"The file couldn’t be saved. Command PhaseScriptExecution failed with a nonzero exit code
See this article: https://github.com/Carthage/Carthage/issues/3056
According to one comment:
rm -rf $ {TMPDIR} / TemporaryItems / * carthage * // New content to be added / usr / local / bin / carthage copy-frameworks // Original content To It will be solved if you add it to run scripts (Script-2D6F48152518F1F300CCDBE0.sh).
However, although I added it, it could not be reflected and resolved if the newly added content was deleted every time.
$ {TMPDIR} / TemporaryItems When you enter this path, (A Document Being Saved By carthage) (A Document Being Saved By carthage 1) (A Document Being Saved By carthage 2) ... A lot of folders with names like this! !! After removing all of these, go to Clean Builder Folder and After bruding, the error went away!
Originally, adding rm -rf $ {TMPDIR} / TemporaryItems / * carthage * should fix it, Even if I added it for some reason, it disappeared, so it took extra time and about 2 hours.
Recommended Posts