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/ /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/
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.

object file format unrecognized, invalid, or unsuitable
/usr/bin/codesign failed with exit code 1

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


osx 数字签名问题

给 osx 的app签名的时候,老是出现  the codesign_allocate helper tool cannot be found or used 的错误. 原因时,osx系统...
  • lanxiaziyi
  • lanxiaziyi
  • 2015年08月29日 18:41
  • 471

xcode 真机编译codesign failed with exit code 1错误 解决

这种错误出现目前我看到过一下几种。 1.证书的目录在登录和系统中都有而且同名,这样xcode就找不到所要的证书,解决办法删除同名。 2.证书删除错误重装证书后依然不能编译(这个...
  • menuconfig
  • menuconfig
  • 2015年10月23日 17:54
  • 4766

iPhone 代码签名 (code signing) 以及解析、屏蔽

iphone代码签名iphone 2.0 firmware 需要CHECK每个应用程序的签名,如果不通过,就会自动KILL.由于校验机制做到了内核中很多地方,简单的给内核打补丁很难解决. 1. cod...
  • linkai5696
  • linkai5696
  • 2010年10月06日 22:37
  • 15647

xcode codesign 签名失败问题

"object file format unrecognized, invalid, or unsuitable" Xcode 错误解决方案 1)首先查看/usr/bin目录下是否存在c...
  • Blue_Dream_
  • Blue_Dream_
  • 2012年12月04日 13:15
  • 6236

解决在IBM JDK下公钥验签失败的问题

我在用sun jdk6的环境下编写关于利用RSA密钥对一个密文token进行验签解密的代码,随后打出jar包。 结果在装有ibm jdk的服务器上运行报错了;
  • u010386668
  • u010386668
  • 2014年01月13日 22:42
  • 2511


1、Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int
  • jane1229
  • jane1229
  • 2017年04月18日 18:47
  • 1212

Java for Web学习笔记(三八):自定义tag(6)一些注意

引入的base.jspf 会报错: org.apache.jasper.JasperException: /WEB-INF/tags/template/loggedOut.t...
  • flowingflying
  • flowingflying
  • 2017年02月27日 11:38
  • 628


最近提特征提的整个tsubame的空间都要满了..今天安torch, clone https://github....
  • apsvvfb
  • apsvvfb
  • 2016年06月30日 19:00
  • 7255


a target cannot be selected when used in another debug session or in other applications
  • chenxinqiang2005
  • chenxinqiang2005
  • 2014年07月17日 10:42
  • 1062

B2B中的WCF,如何用WCF开发一个只需签名不加密的网络服务(Secured Web Service)

有些关键的企业间应用通常涉及到金钱需要足够的安全才敢通讯,所以就有了安全的网络服务(Secured Web Service)。微软以前用WSE来实施,我觉得还不是很难。后来WSE被微软放弃了,要大家都...
  • cjq1234
  • cjq1234
  • 2013年09月24日 05:59
  • 3683
您举报文章:codesign_allocate helper tool cannot be found or used