【问题标题】:IB Designables Failed to render and update auto layout status : dlopen(Cosmos.framework, 1): no suitable image foundIB Designables 无法渲染和更新自动布局状态:dlopen(Cosmos.framework,1):找不到合适的图像
【发布时间】:2018-11-10 14:23:28
【问题描述】:

我已经在 Swift 3,Xcode 版本 8.3.3 中成功集成了第 3 方库,
CocoaPods:pod 'Cosmos', git: 'https://github.com/marketplacer/Cosmos.git', tag: '8.0.2'.
但是,今天它按预期停止了工作。我在问题导航器窗格中收到 3 个错误。

  • itemfile:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard: 错误:IB Designables:无法更新自动布局状态: dlopen(Cosmos.framework, 1): 没有找到合适的图像。发现: Cosmos.framework:缺少所需的代码签名 'Cosmos.framework'

file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard: 错误:IB Designables:无法呈现和更新自动布局状态 对于 ManageFeedbackTableViewController (dmz-jg-rVK): dlopen(Cosmos.framework, 1): 没有找到合适的图像。发现: Cosmos.framework:缺少所需的代码签名 'Cosmos.framework'

  • file:///Users/bogdanbarbulescu/Desktop/Brev/Brev/Base.lproj/Main.storyboard: 错误:IB Designables:无法呈现和更新自动布局状态 对于 DetailViewController (vPa-2A-MKV): dlopen(Cosmos.framework, 1): no 找到合适的图像。确实找到了:Cosmos.framework: required code 'Cosmos.framework' 缺少签名

【问题讨论】:

    标签: xcode8 ibdesignable


    【解决方案1】:

    只需将此代码添加到 pod 文件的底部并重新安装 pod。应该可以。

    post_install do |installer|
        installer.pods_project.build_configurations.each do |config|
            config.build_settings.delete('CODE_SIGNING_ALLOWED')
            config.build_settings.delete('CODE_SIGNING_REQUIRED')
        end
    end
    

    【讨论】:

    • 我在我的项目中尝试了这个,其中包括 Firebase pod,它引入了 21 个新错误!!!
    猜你喜欢
    • 2018-03-25
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 2017-02-05
    • 1970-01-01
    • 2018-06-24
    相关资源
    最近更新 更多