title: Interface Builder broken on Framework projects using Cocoapods 1.0
body: <p>After migrating to Cocoapods 1.0 none of my XIBs or Storyboards that uses custom <code>IBDesignable</code> renders correctly on dynamic framework projects. It fails with errors like this:</p>
  
  <pre><code>file:///Users/xxxxx/workspace/FooFramework/FooFramework/View.xib: error: IB Designables: Failed to update auto layout status: dlopen(FooFramework.framework, 1): Library not loaded: @rpath/Alamofire.framework/Alamofire
    Referenced from: FooFramework.framework
    Reason: image not found
  
  file:///Users/xxxxx/workspace/FooFramework/FooFramework/View.xib: error: IB Designables: Failed to render instance of CustomView: dlopen(FooFramework.framework, 1): Library not loaded: @rpath/Alamofire.framework/Alamofire
    Referenced from: FooFramework.framework
    Reason: image not found
  </code></pre>
  
  <hr>
  
  <p>Steps to reproduce:</p>
  
  <ol>
  <li>Create a new iOS Framework project.</li>
  <li>Create and add any dependency to the <code>Podfile</code> file. For example:</li>
  </ol>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '8.0'
  use_frameworks!
  
  target 'FooFramework' do
  pod 'Alamofire'
  end
  </code></pre>
  
  <ol start="3">
  <li>Execute <code>pod install</code> and open <code>.xcworkspace</code> file.</li>
  <li>Create a custom <code>IBDesignable</code> <code>UIView</code> subclass. For example:</li>
  </ol>
  
  <pre><code>import UIKit
  
  @IBDesignable class CustomView: UIView {
  
      override init(frame: CGRect) {
          super.init(frame: frame)
          layer.cornerRadius = 10
      }
  
      required init?(coder aDecoder: NSCoder)
      {
          super.init(coder: aDecoder)
          layer.cornerRadius = 10
      }
  }
  </code></pre>
  
  <ol start="5">
  <li>Create a new XIB or Storyboard and add the custom view.</li>
  </ol>
  
  <p>At this point XCode will re-compile the code and will be unable to render the custom view. Giving the errors mentioned above.</p>
  
  <hr>
  
  <p>However, the project compiles correctly, and the XIB created are successfully shown in simulator when executing. It only fails on render time on Interface Builder.</p>
  
  <p>The same procedure using Cocoapods 0.38 or a executable project works as expected, no errors are obtained and the custom view is rendered correctly.</p>
  
  <p>Am I missing any configuration parameter in the <code>Podfile</code>? Is it a Cocoapods bug? Is there any workaround?</p>
  
  <hr>
  
  <p><strong>Update</strong>:</p>
  
  <p>Tried using different <code>Runpath Search Paths</code> and <code>Installation Directory</code> like described <a href="https://stackoverflow.com/questions/26799054/failed-to-render-instance-of-ib-designables/35398384">here</a> and <a href="https://stackoverflow.com/questions/29990195/loading-code-from-a-framework-for-a-custom-control-in-ibdesignable">here</a> with no luck.</p>
  
  <p>Found a workaround using Cocoapods 0.39, that still works with no issue:</p>
  
  <pre><code>pod _0.39.0_ install
  </code></pre>