How can I build someone else's Xcode project?
I was given a project folder which contains an Xcode project along with all the source files. When I open the Xcode project, and build it, it gave me this erro开发者_C百科r:
"The executable was signed with invalid entitlements"
How can I change the project such that my own provisioning profile will work? It should be possible because I have opened Xcode projects before and was able to build it straight to my phone.
Edit:
- Code signing entitlements is blank
- This is not an ad-hoc build. It is debug and I am copy/pasting someone else's folder which contains the Xcode project and files.
Check that sign identity, entitlements, etc. is properly set for both the Project and the Target. Preferably delete the setting for the Target and only define for the Project.
If you just want to test in the simulator, go the the project and press 'delete' on the code sign identity and entitlements so they will be cleared. Please note: you won't be able to test on device like this, an identity is required to test on devices.
If you want to test on device as well, change the code sign identity to your own identity and make sure the identifier in the project's .plist is set to your company (the company identifier needs to match the code sign identity's identifier). Generally people use the reverse domain identifier, e.g. com.mycompany.myproject.
精彩评论