我在我的项目中使用 Cosmos Pod 作为星级。将 View 类设置为 CosmosView 后,我的 Storyboard之一出现错误:

file:///Users/FedericoVivian/Documents/Documenti%20personali/CSMApp/CSMApp/LogBook/LogBook.storyboard: error: IB Designables: Failed to render and update auto layout status for UIViewController (GJw-lE-8co): dlopen(Cosmos.framework, 1): no suitable image found. Did find: Cosmos.framework: required code signature missing for 'Cosmos.framework'

我正在使用这个版本

Cosmos 版本 15.0.0 Xcode 9.3 swift

我该如何解决这个错误?它会导致整个 Storyboard为空白。

请帮帮我!!

请您参考如下方法:

如果您使用的是 Cocoapods,请尝试使用此解决方案解决我的问题:

https://github.com/CocoaPods/CocoaPods/issues/7606#issuecomment-381279098

只需将下面的代码添加到您的 Podfile 并更新您的依赖项。

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


评论关闭
IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

ios之两个 UIBezierPaths 交集作为一个 UIBezierPath