我想签署我的OSX应用程序,但收到此错误,知道吗?

fatal error: codesign_allocate: can't allocate code signature data for:
            /...../X.app/Contents/Frameworks/libtiff.5.dylib
 (for architecture x86_64)

because larger updated load commands do not fit (the program must be relinked using a larger -headerpad value)

                /..../Products/Debug/X.app:

the codesign_allocate helper tool cannot be found or used
In subcomponent: /..../Products/Debug/X.app/Contents/Frameworks/libtiff.5.dylib

最佳答案

如果您在具有不同体系结构的Mac(ex x86_64)上构建您的应用程序,并尝试在不同的Architechture机器(ex i386)上对该应用程序进行代码签名,则会出现此错误。

解决方案是在同一台计算机上进行构建和代码签名。

关于objective-c - codesign_allocate:无法分配代码签名数据,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23690039/

10-10 22:25