Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
963 views
in Technique[技术] by (71.8m points)

ios - @IBDesignable error: Failed to update auto layout status

My project is shown me below error in storyboard, my project is build successfully also run successfully in simulator, but still error is exist when i open the storyboard.

Error:

Failed to render and update auto layout status for previewController (80C-7j-jFY): dlopen(GoogleMobileAds.framework, 1): no suitable image found.

Did find: GoogleMobileAds.framework: no matching architecture in universal wrapper

If anyone have any solution to avoid it. Please give the response.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

For Xcode 9.+ version You have to downgrade your pod repository to remove this problem. For this what you have to do.

  • Step1

Steps which you have to follow

sudo gem list cocoapods

sudo gem uninstall cocoapods

sudo gem install cocoapods -v 1.4.0
  • Step 2

Go to your project Directory and Update Your Pod like

pod update 
  • Step 3

Clear your project as well as Derived Data.Build and run your project. This error will remove after this.

ADD This Script on your POD File

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

Note:- if you are facing this issues on XCODE 10.+ Follow all the steps with sudo gem install cocoapods instead of sudo gem install cocoapods -v 1.4.0 it works for me.

Hope this will help you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...