【发布时间】:2018-01-22 23:08:38
【问题描述】:
我在使用 GTMSessionFetcher 时遇到了这个错误 我不确定这意味着什么。 会不会是签名错误?
dyld: Library not loaded: @rpath/GTMSessionFetcher.framework/GTMSessionFetcher
Referenced from: /var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Studioso
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher: code signing blocked mmap() of '/private/var/containers/Bundle/Application/E62297DC-9AD6-49C8-8821-5F9BF265B7CF/Studioso.app/Frameworks/GTMSessionFetcher.framework/GTMSessionFetcher'
Message from debugger: Terminated due to signal 6
【问题讨论】:
-
code signing blocked mmap()指示的代码签名配置(证书、配置文件等)有问题。 -
我最近遇到了这个问题,对我有用的是这个 -> 转到构建阶段 > 将二进制文件与库链接 > 选择 GTMSessionFetcher.framework。将其设置为可选(而不是必需)。而已。清理您的项目并再次构建/运行。这是问题的链接:github.com/CocoaPods/CocoaPods/issues/3586
标签: swift xcode frameworks gtmsessionfetcher