开发者

How can I build someone else's Xcode project?

开发者 https://www.devze.com 2023-03-04 17:40 出处:网络
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:

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:

  1. Code signing entitlements is blank
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消