Xcode : The file “XXX.entitlements” couldn’t be opened because there is no such file

Viewed 19670

Cause my old machine was damaged so I copied the project to another machine and build&run it but xcode return error :

warning: Falling back to contents of entitlements file "XXX.entitlements" because it was modified during the build process. Modifying the entitlements file during the build is unsupported.error: The file “XXX.entitlements” couldn’t be opened because there is no such file.

Does anyone have any suggestions?

3 Answers

I hit the same error. When build, Xcode could not find the .entitlements file. The root cause: I caused the error by renaming a folder inside my xCode project.

enter image description here

The fix was to remove the hardcoded path (that Xcode had used).

Related