codesign: unrecognized option `--entitlements'

不想你离开。 提交于 2019-12-06 17:44:34

I've never seen that one before but it suggests that something is broken in your Xcode installation. If codesign doesn't know about the -entitlements option, it's either an old version or maybe one that didn't come from the iPhone SDK. This might happen if, for example, you've recently installed an older copy of the developer tools. It might happen for other reasons-- never having seen it before I can't be completely sure.

You could investigate the problem by using xcode-select at the command line. Something like this:

% xcode-select -print-path
/Developer

It prints the path to the current version of Xcode used by command-line tools (like codesign) and it should point toward your copy of the iPhone SDK. If it doesn't, you can change it via xcode-select -switch /path/to/SDK'.

It may be easier to just reinstall the iPhone SDK, though if it was me I'd want to investigate it and understand what went wrong.

I updated to the latest xcode version and updated the latest updates for mac leopard. and it worked fine.

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