Tung Vu Duc
Tung Vu Duc

Reputation: 1662

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

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?

Upvotes: 39

Views: 32593

Answers (4)

Govind29
Govind29

Reputation: 11

for me this issue came when i updated the xcode without pushnotifcation in signing & capabilities. -> capability --> push notifcation . The .entitlements file will automatically added to your code in inside folder in IOS . if you checkout to a new branch and not clearing the cache. some files may got missed. so make sure to clear all , when taking new build from the branch u have checked out.

Upvotes: 0

rustyMagnet
rustyMagnet

Reputation: 4085

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).

Upvotes: 9

Museer Ahamad Ansari
Museer Ahamad Ansari

Reputation: 5523

Go to your build settings and empty the Entitlements value. enter image description here

Hope this work for you

Upvotes: 121

Zailyn Tamayo
Zailyn Tamayo

Reputation: 112

Is it looking for an Entitlements.plist file?

Maybe delete bin and obj folders and try to rebuild? I'm not too familiar with XCode but this is what I would do on Xamarin iOS.

Upvotes: -3

Related Questions