【问题标题】:Error dyld: Library not loaded: @rpath/GTMSessionFetcher.framework/GTMSessionFetcher - Code signing error错误 dyld:未加载库:@rpath/GTMSessionFetcher.framework/GTMSessionFetcher - 代码签名错误
【发布时间】: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


【解决方案1】:

我也遇到了同样的问题...通过添加解决了:

在你的 podfile 中:

use_modular_headers!

而不是

use_frameworks!

祝你好运!我希望这对你有用!

【讨论】:

    猜你喜欢
    • 2020-06-15
    • 2015-06-01
    • 2017-04-18
    • 2015-02-25
    • 1970-01-01
    • 1970-01-01
    • 2018-02-25
    • 2014-07-25
    • 1970-01-01
    相关资源
    最近更新 更多