[SWIFT] Build error for The file ca n’t be saved in Xcode

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

Build error for The file ca n’t be saved in Xcode
If you get the error The data ca n’t be read because it is missing in docker for mac
[Spring Boot] List of validation rules that can be used in the property file for error messages
For those who get the error Unprintable ASCII character found in source file
Information about workarounds for Carthage build errors in Xcode 12
Workaround for com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
Xcode12 tableView display error
Workaround for Bundler.require error when executing ruby with crontab
Workaround for serialization error on MyBatis Lazy Load + Jackson
[Rails] Workaround for classes automatically generated by devise error messages
Remedy for Selenium InvalidSelectorException error
Build error for The file ca n’t be saved in Xcode
The strong parameter is true, but for some reason it cannot be saved in the table.
The repository ... is not signed error in docker build apt-get update
Unzip the zip file in Java
For the time being, run the war file delivered in Java with Docker
[Xcode] Build succeeds, but the problem cannot be installed on the actual machine