Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I have error in one of my Storyboard after set view class to CosmosView:

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'

I using this release

Cosmos release 15.0.0 Xcode 9.3 Swift

How I can fix this error? It causes whole storyboard to be blank.

Help me please !!

like image 704
Federico Vivian Avatar asked Apr 10 '18 23:04

Federico Vivian


1 Answers

In case you are using Cocoapods try this solution fixed the problem for me:

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

Just add code below to your Podfile and update your dependencies.

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
like image 87
lazarev Avatar answered Nov 07 '22 16:11

lazarev