[英]Failed to render and update auto layout status for UIViewController : dlopen(Cosmos.framework, 1): no suitable image found
I'm using Cosmos Pod in my project as stars rating. 我在我的项目中使用Cosmos Pod作为星级。 I have error in one of my Storyboard after set view class to CosmosView:
在将视图类设置为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.
file:///Users/FedericoVivian/Documents/Documenti%20personali/CSMApp/CSMApp/LogBook/LogBook.storyboard:error:IB Designables:无法呈现和更新UIViewController(GJw-lE-8co)的自动布局状态:dlopen( Cosmos.framework,1):找不到合适的图像。 Did find: Cosmos.framework: required code signature missing for 'Cosmos.framework'
找到:Cosmos.framework:'Cosmos.framework'缺少必需的代码签名
I using this release 我使用这个版本
Cosmos release 15.0.0 Xcode 9.3 Swift Cosmos发布15.0.0 Xcode 9.3 Swift
How I can fix this error? 我该如何解决这个错误? It causes whole storyboard to be blank.
它导致整个故事板为空白。
Help me please !! 请帮帮我 !!
In case you are using Cocoapods try this solution fixed the problem for me: 如果您正在使用Cocoapods尝试此解决方案为我解决了问题:
https://github.com/CocoaPods/CocoaPods/issues/7606#issuecomment-381279098 https://github.com/CocoaPods/CocoaPods/issues/7606#issuecomment-381279098
Just add code below to your Podfile and update your dependencies. 只需将下面的代码添加到您的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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.