前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >IB Designables: Failed to render and update auto layout status forhttps://github.com/CocoaPods/Cocoa

IB Designables: Failed to render and update auto layout status forhttps://github.com/CocoaPods/Cocoa

作者头像
iOSDevLog
发布2018-07-25 16:58:31
8900
发布2018-07-25 16:58:31
举报
文章被收录于专栏:iOSDevLogiOSDevLog

https://www.raywenderlich.com/156971/cocoapods-tutorial-swift-getting-started

https://github.com/CocoaPods/CocoaPods/issues/5334

keronsen

keronsen commented 2018年3月21日 GMT+8 下午5:24

I'm writing a pod containing ibdesignables as well as pod dependencies and I'm running into the interface builder issue in this discussion when using the pod in apps. I would like to contribute towards fixing the problem, but don't really understand enough about the XCode build process (yet). Probably don't understand enough about how CocoaPods work either.

But I found that when I add this to my podspec the problem goes away:

代码语言:javascript
复制
s.pod_target_xcconfig = { 'LD_RUNPATH_SEARCH_PATHS' => '$(FRAMEWORK_SEARCH_PATHS)' }

The comments from @adc-amatosov here #5334 (comment) makes me wonder if this has some side-effects for production apps that I'm not aware of. I would be really happy if anyone could point me in the right direction to understanding this better.

https://github.com/CocoaPods/CocoaPods/issues/5334#issuecomment-255831772

arifken

**arifken **commented 2016年10月25日 GMT+8 上午2:54

We recently ran into a similar issue with IBDesignables "image not found" issues, and were able to work around the problem by adding FRAMEWORK_SEARCH_PATHS to the runpath search paths.

代码语言:javascript
复制
post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = [
      '$(FRAMEWORK_SEARCH_PATHS)'
    ]
  end
end
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.07.21 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • keronsen commented 2018年3月21日 GMT+8 下午5:24
  • https://github.com/CocoaPods/CocoaPods/issues/5334#issuecomment-255831772
    • **arifken **commented 2016年10月25日 GMT+8 上午2:54
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档