IBDesignables failing to render

Ok, I've been through all the forums and websites but have yet to find a solution or even a reason for a problem we are having in regards to using IBDesignables in a large project that uses lots of frameworks (about 30 via Cocoapods or internal). Xcode 8.0 though it started back in Xcode 7.x. The frameworks are a mix of Swift and Objective-C.


The actual error messages in Xcode are:

"Failed to render and update auto layout status for XXXX: dlopen(xxxx, 1): Library not loaded: @rpath/YYYY/YYYY.framework" and

"Failed to update auto layout status: dlopen(xxxx, 1): Library not loaded: @rpath/YYYY/YYYY.framework"


  • We don't seem to have the problem on smaller projects that utilize various combinations of the same frameworks
  • I've been able to get the errors to complain about different libraries not loading by removing some from the project, so it does not appear to be directly related to the actual library being complained about.
  • I've eliminated "-ObjC" and "all_load" as possible culprits by making sure they where no where the project or xxconfig files.


Many of the frameworks do share the same dependencies. Things like AFNetworking, ActionSheetPicker, ReactiveCocoa, etc., but removing them only moves the errors around.


Has anyone else seen a problem with IBDesignables not working on larger projects?

I am having the same error message. It used to work fine on XCode 7 but not since the update. In my case,
- The error "Failed to render and update auto layout status for XXXX: dlopen(xxxx, 1): Library not loaded: @rpath/YYYY/YYYY.framework" appears 5 times with different "X" parts but the "Y" part is always "XCTest.framework/...".
- The project is also quite big, 500+ files and lots of Pods


Unfortunately I haven't had the time to investigate this, I will update if I find something.

We are able to workaround the problem by adding the following to each of the pods we use:


installer.pods_project.build_configurations.each do |config|

config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = [

'$(FRAMEWORK_SEARCH_PATHS)',

'"/Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator"'

]

end

IBDesignables failing to render
 
 
Q