Reputation: 1662
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
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
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.
The fix was to remove the hardcoded path (that Xcode had used).
Upvotes: 9
Reputation: 5523
Go to your build settings and empty the Entitlements value.
Hope this work for you
Upvotes: 121
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