Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

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?

like image 738
Tung Vu Duc Avatar asked Jul 30 '17 02:07

Tung Vu Duc


People also ask

What is entitlements file in Xcode?

An app stores its entitlements as key-value pairs embedded in the code signature of its binary executable. You configure entitlements for your app by declaring capabilities for a target in Xcode. Xcode records capabilities that you add in a property list file with the . entitlements extension.

Was modified during the build which is not supported you can disable this error by setting?

entitlements" was modified during the build, which is not supported. You can disable this error by setting 'CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION' to 'YES', however this may cause the built product's code signature or provisioning profile to contain incorrect entitlements.


1 Answers

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

Hope this work for you

like image 64
Museer Ahamad Ansari Avatar answered Sep 19 '22 14:09

Museer Ahamad Ansari