今天看啥  ›  专栏  ›  iOSDevLog

IB Designables: Failed to render and update auto layout status for

iOSDevLog  · 简书  ·  · 2018-07-21 12:32

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:

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.

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = [
      '$(FRAMEWORK_SEARCH_PATHS)'
    ]
  end
end



原文地址:访问原文地址
快照地址: 访问文章快照