Codesign only succeeds after other xcode iphone project is successfully signed

不羁岁月 提交于 2019-12-04 09:00:47

The problem could be too many info.plist files.

I had the same problem (alternating codesign success and failure).

I had added a directory of source code to my project, with "add existing files" on the directory. Turns out there was a info.plist file in the directory, so I now had 2 of them in my project. I deleted the new one and removed it from the project, and my problem was solved.

I also was struggling with the 'Command /usr/bin/codesign failed with exit code 1' error message.

Here is how I solved it

Right-click on info.plist look at it's targets. Make sure the box to the left is UNCHECKED. This is the default state.

Targeting the files don't work fine for the info.plist.

cdespinosa

Searching for the specific error message

object file format invalid or unsuitable

I got these links:

http://www.galloway.me.uk/2009/04/json-framework-codesign-object-file-format-invalid-or-unsuitable/

which suggest that your ResourceRules.plist is not set up correctly. That solution seems to have helped a lot of folks with this problem.

the issue happened to me, tried every combination of cert, provisioning profile, cleans and restarts, frustrating the damn system doesn't tell you what the issue is. just let me keep guessing. the solution for me was the above referenced article.

"Executable name" must match "Product Name"

really saved me to find this here. thanks.

Make sure you don't have more than one Info.plist file in your target!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!