如何构建别人的 Xcode 项目?
我得到了一个项目文件夹,其中包含 Xcode 项目以及所有源文件。当我打开 Xcode 项目并构建它时,出现以下错误:
“可执行文件已签名 无效权利”
我如何更改项目以便我自己的配置文件可以工作?这应该是可能的,因为我之前打开过 Xcode 项目并且能够直接将其构建到我的手机上。
编辑:
- 代码签名权利为空
- 这不是这是一个临时构建,我正在复制/粘贴其他人的包含 Xcode 项目和文件的文件夹。
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 error:
"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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查项目和目标的标志身份、权利等是否已正确设置。最好删除目标的设置并仅为项目定义。
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.
如果您只想在模拟器中进行测试,请转到项目并按代码签名身份和权利上的“删除”,这样它们就会被清除。请注意:您将无法在这样的设备上进行测试,需要身份才能在设备上进行测试。
如果您也想在设备上进行测试,请将代码签名身份更改为您自己的身份,并确保项目的 .plist 中的标识符设置为您的公司(公司标识符需要与代码签名身份的标识符匹配)。通常人们使用反向域标识符,例如com.mycompany.myproject。
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.