I’m constructing a React Native 0.72.10 iOS app and hitting construct errors.
Surroundings:
Errors:
-
Couldn't delete /Customers/.../ios/construct as a result of it was not created by the construct system -
Unable to jot down file '/Customers/.../ios/construct/Pods.construct/Debug-iphonesimulator/...': Operation not permitted
(A number of Pods / React Native framework headers affected)
What I’ve tried:
rm -rf ios/construct
rm -rf ~/Library/Developer/Xcode/DerivedData
xattr -w com.apple.xcode.CreatedByBuildSystem true ios/construct
pod deintegrate && pod set up
sudo chown -R $(whoami) ios/construct
Observations:
-
Why does Xcode fail to delete / write to
ios/constructdespite the fact that it’s recreated routinely by the construct system? -
Is that this attributable to Xcode itself, macOS permissions, or a React Native / Pod subject?
-
Any advisable repair or workaround for these “Operation not permitted” errors?

