gpt4 book ai didi

Xcode - @IBDesignables - X.framework 缺少所需的代码签名

转载 作者:行者123 更新时间:2023-12-04 13:09:15 24 4
gpt4 key购买 nike

我知道以前有人问过类似的问题,但似乎对我没有任何作用。

我使用 CocoaPods 并安装框架“X”。这可以是可以直接在 Storyboard 中编辑的任何内容。两个例子是“MBCircularProgressBar”和“UICircularProgressRing”。

我将它添加到 UIView 并立即收到此错误。它弄乱了我的 storbyboard,但应用程序运行良好。

我正在使用最新版本的 Xcode,最新的 MAC OS。

我试过什么?

  • 删除了 Xcode 的 DerivedData 中的所有内容
  • 清理、构建、刷新 View ++
  • 移除有问题的 pod 并重新安装/尝试不同的 pod
  • 在“常规”中禁用“自动代码签名”并手动设置为我的公司

  • 目前的错误显示:
    Main.storyboard: error: IB Designables: Failed to render and update auto layout status for Dashboard_UsageVC (mqT-RZ-029): dlopen(MBCircularProgressBar.framework, 1): no suitable image found.  Did find:
    MBCircularProgressBar.framework: required code signature missing for 'MBCircularProgressBar.framework'

    2018 年 4 月 23 日更新 - 仍未解决

    还是有这个问题。我已经走到了极端,完全重置了我的 MAC。重新安装了一切。同样的问题。即使将 CocoaPods 降级到 1.4.0 并将 Xcode 降级到以前的版本。为了避免把我所有的头发都拉出来,我现在完成了应用程序的其余部分,不需要什么特别的东西,并希望有一个神奇的解决方案,让这个更接近应用程序发布。

    最佳答案

    它已通过 Cocoapods 1.5.2(可能是 1.5.1,但我已直接从 1.5.0 升级到 1.5.2)得到修复。

    更新

    我可能说得太快了。
    几次构建后错误再次出现。

    但是,在合并错误修复之前,此解决方法似乎有效(适用于 Cocoapods 1.5.x):

  • 清理您的项目
  • 关闭 Xcode 并删除 DerivedData
  • 在您的项目中打开 Podfile,并添加以下内容:
    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
  • 然后在命令行中执行:
  • pod updatepod install
    资料来源:
  • https://github.com/CocoaPods/CocoaPods/issues/7606#issuecomment-381279098
  • https://github.com/evgenyneu/Cosmos/issues/105
  • https://github.com/Skyscanner/SkyFloatingLabelTextField/issues/201#issuecomment-381915911
  • 关于Xcode - @IBDesignables - X.framework 缺少所需的代码签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49851988/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com