赞
踩
真机上运行.framework时,如果报如下信息时表示framework动态库没有签名,需要进行重签名:
dyld: Library not loaded: @rpath/XX.framework/XX Referenced from: /var/containers/Bundle/Application/DF33E1CB-0A69-4303-A22A-686E643DE922/iDoctors.app/iDoctors Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/DF33E1CB-0A69-4303-A22A-686E643DE922/iDoctors.app/XX.framework/XX: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DF33E1CB-0A69-4303-A22A-686E643DE922/iDoctors.app/XX.framework/XX' Message from debugger: Terminated due to signal 6
相关签名命令:
1.查看framework的签名证书命令:
codesign -d -vv xxxxx.framework
2.删除原有的签名
进入到XX.framwork文件夹内,删除_CodeSignature文件夹
3.查看本机可用的签名文件,命令:
/usr/bin/security find-identity -v -p codesigning
结果示例(如果你的电脑上有更多签名文件,则会打印出更多):
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。