Nurol Alacaatli
Nurol Alacaatli

Reputation: 101

Xcode Build Errors regarding DerivedData folder (File Write Create Error)

I accidentally deleted the DerivedData folder, not only its files.

Applying this command "rm -rf ~/Library/Developer/Xcode/DerivedData"

Instead of this command "rm -rf ~/Library/Developer/Xcode/DerivedData/"

After that Xcode started to return following errors.

Error # 1 : Sandbox: rsync.samba(12046) deny(1) file-write-create /Users/mycompany/Library/Developer/Xcode/DerivedData/Runner-bfdtmaowyaodbagkvttzeqjhiwjl/Build/Products/Debug-iphonesimulator/Flutter.framework

Error # 2 : Sandbox: dart(12019) deny(1) file-write-create /Users/mycompany/Library/Developer/Xcode/DerivedData/Runner-bfdtmaowyaodbagkvttzeqjhiwjl/Build/Products/Debug-iphonesimulator/.last_build_id

Error # 3 : Flutter failed to write to a file at "/Users/mycompany/Library/Developer/Xcode/DerivedData/Runner-bfdtmaowyaodbagkvttzeqjhiwjl/Build/Products/Debug-iphonesimulator/.last_build_id".

I also run following commands (not in order, while trying to solve it by myself)

Because of those errors Xcode can't build the app.

Here is the version information of my development environment.

Any help will be appreciated. Thank you very much in advance.

Upvotes: 0

Views: 1364

Answers (1)

Sabeel K M
Sabeel K M

Reputation: 35

this looks like an issue with Xcode in the local environment. Let's try changing to another location to see if it helps.

Xcode -> Settings -> Locations

ref: https://github.com/flutter/flutter/issues/157461#issuecomment-2436805260

Upvotes: 0

Related Questions