codesign_allocate helper tool cannot be found or used

转载 2015年10月26日 17:20:39

貌似是使用了os的,不是iPhone 的签名工具。

Did some digging on this one and found a few good Stack responses to similar problems - but no generic solutions for all comers, so I figured I’d make one. :)

The cause of the problem is: in modern versions of OSX, if you install Xcode from the App Store, it installs itself like all other Apps - which means it’s in a different directory than was historically the case. Unfortunately, this has far-reaching implications that affect both Xcode and its command-line tools and - in fact - other things that reach far beyond the scope of this question.

So, until they fix it, let’s talk workarounds. Many people recommend changing your Xcode system variables to point to the ‘App Store’ folder, but I think this is a dangerous overkill - you just don’t know what kind of mayhem it may cause if they ever fix their pathing!

Instead, I recommend using Terminal to change only the system link affecting ibtool (or whatever tool you’re using), like so:

Recommended solution

Step 1: Remove the old system link

sudo rm /usr/bin/ibtool
Step 2: Create a new system link

sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool
For reference only, here is another command that will fix this - but I DO NOT recommend using it for the reasons stated above:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I can see the argument that xcode-select might be a proper solution if you have all kinds of /Developer-related errors, but in that case I would just reinstall Xcode without using the App Store and get it going good from the start.

For the rest of us already too far down the App Store path to re-do it all, see above.

CodeSign的时候,出现了大意为:
object file format unrecognized, invalid, or unsuitable
/usr/bin/codesign failed with exit code 1
这样的错误。

最后还是在StackOverflow上找到了答案。用下面的命令:
sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_old (我不需要。因为两个Xcode冲突,谁都没有给我一个codesign_allocate到该目录)
sudo ln -s /DeveloperXcode4/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin
解决了问题。如下图:

codesign_error

http://blog.163.com/zhanghaoand@126/blog/static/89857478201421762319420/

相关文章推荐

Cannot complete the install because one or more required items could not be found

安装ADT插件的时候出现此错误  在配置Eclipse的时候,安装ADT搭建Android开发环境的时候出现如下错误: Cannot complete the install becaus...

Error: debugging information for 'myproject.exe' cannot be found or does not match. No symbols loaded.

今天调试一C++程序,按下F5,老是弹出一对话框显示信息:debugging information for 'myproject.exe' cannot be found or does not m...

The context cannot be used while the model is being created

今天在使用 EF 的Code First 过程中,更新数据到数据库时, 执行到  context.UserPermission.Add(permission); 时提示错误信息:提供程序未返回 P...

aws - The parameter groupName cannot be used with the parameter subnet

如果在aws的某一个zone里面,删掉默认的vpc,然后自己新建,那么当使用脚本去,例如boto,创建instance以及security groups的时候,会遇到:...

coco2dx新建项目报错,ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command

在新建cocos2d-x以后,运行发现以下错误: ld: -pie can only be used when targeting iOS 4.2 or later clang: error: l...

SSAS Quick Reference: Attribute Key Cannot Be Found

Monday, February 2, 2009 SSAS Quick Reference: Attribute Key Cannot Be Found This is a reference ...

The Struts dispatcher cannot be found异常的解决方法

系统错误:HTTP Status 500 异常信息:The Struts dispatcher cannot be found.  This is usually caused by using S...

新版本 Linux Deploy 部署 Debian 提示 E:the selected extractor cannot be found:ar 问题

原来的镜像弄坏了,本想重新下一个新镜像,却坑爹的 E:the selected extractor cannot be found:ar原因:busybox官网 https://busybox.ne...

org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法

利用Struts2进行开发,当访问某个jsp页面时我们可能会遇到: org.apache.jasper.JasperException: The Struts dispatcher cannot b...

Struts2学习——0800 Included file cannot be found问题

前言其实本小节的内容,并不是如题目所说的这样,而是主要介绍了Struts2中的include模块知识点。但是由于这个知识点的内容技术强并不强,所以把实验中遇到的问题,作为本小节的标题。背景Includ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:codesign_allocate helper tool cannot be found or used
举报原因:
原因补充:

(最多只允许输入30个字)