@IBDesignable错误:无法更新自动布局状态 [英] @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.
错误:
无法呈现和更新PreviewController的自动布局状态( 80C-7j-jFY):dlopen(GoogleMobileAds.framework,1):未找到合适的图像。
Failed to render and update auto layout status for previewController (80C-7j-jFY): dlopen(GoogleMobileAds.framework, 1): no suitable image found.
找不到:
GoogleMobileAds.framework:没有匹配的架构在通用包装器中
Did find: GoogleMobileAds.framework: no matching architecture in universal wrapper
如果有人有任何解决方案可以避免它。请给出答复。
If anyone have any solution to avoid it. Please give the response.
推荐答案
对于Xcode 9. +版本,您必须降级pod存储库以消除此问题。
为此,您必须要做的事情。
For Xcode 9.+ version You have to downgrade your pod repository to remove this problem. For this what you have to do.
- Step1
- Step1
您必须遵循的步骤
sudo gem list cocoapods
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.4.0
- 步骤2
转到您的项目目录并更新您的Pod,例如
Go to your project Directory and Update Your Pod like
pod update
- 第3步
清除 >您的项目以及衍生数据。构建并运行您的项目。
此错误将在此之后消除。
Clear your project as well as Derived Data.Build and run your project. This error will remove after this.
在POD文件中添加此脚本
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
注意:-如果您在 XCODE 10+上遇到此问题,请按照以下步骤操作: sudo gem install cocoapods 代替了 sudo gem install cocoapods -v 1.4.0 ,它对我有用。
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.
希望这对您有所帮助。
这篇关于@IBDesignable错误:无法更新自动布局状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!