iOS dylib代码签名问题

时间:2015-03-10 15:33:07

标签: ios code-signing dylib

我正在尝试将我的应用与动态库相关联。在库的项目文件中,使用" iOS Developer"启用代码签名,并且相同的设置适用于我的应用程序。尽管使用以下错误消息启动应用程序时会崩溃: dyld: Library not loaded: @executable_path/libTKBool.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/DADDB24B-1424-4FC8-BC6F-3F24CFC33CA5/Shapr3D.app/Shapr3D Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/DADDB24B-1424-4FC8-BC6F-3F24CFC33CA5/Shapr3D.app/libTKBool.dylib: code signature invalid for '/private/var/mobile/Containers/Bundle/Application/DADDB24B-1424-4FC8-BC6F-3F24CFC33CA5/Shapr3D.app/libTKBool.dylib' /private/var/mobile/Containers/Bundle/Application/DADDB24B-1424-4FC8-BC6F-3F24CFC33CA5/Shapr3D.app/libTKBool.dylib: code signature invalid for '/private/var/mobile/Containers/Bundle/Application/DADDB24B-1424-4FC8-BC6F-3F24CFC33CA5/Shapr3D.app/libTKBool.dylib'

检查dylibs签名的有效性结果: /Users/icsanady/Library/Developer/Xcode/DerivedData/OCCT-ebpdjmtsbjbrzmatuymdkggbpkif/Build/Products/Release-iphoneos/libTKBO.dylib /Users/icsanady/Library/Developer/Xcode/DerivedData/OCCT-ebpdjmtsbjbrzmatuymdkggbpkif/Build/Products/Release-iphoneos/libTKBO.dylib: valid on disk

/Users/icsanady/Library/Developer/Xcode/DerivedData/OCCT-ebpdjmtsbjbrzmatuymdkggbpkif/Build/Products/Release-iphoneos/libTKBO.dylib: satisfies its Designated Requirement

我还尝试添加一个'复制文件' dylib的构建阶段,并启用复制代码登录'领域,没有任何成功。

所以现在我必须在构建之后手动对libs进行编码。当然,我可以添加脚本阶段,自动签名,但我认为Xcode应该自动完成。这是Xcode中的错误,还是我做错了什么?

0 个答案:

没有答案