Reputation: 101
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.
Flutter - Stable channel - 3.16.7 on Macos 14.2.1 darwin-arm64
Dart - 3.2.4
Devtools 2.28.5
Platform Android 33, build tools 34.0.0
OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
Android Studio 2023.1
Xcode 15.2
CocoaPods 1.12.0
Any help will be appreciated. Thank you very much in advance.
Upvotes: 0
Views: 1364
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