title: iOS issues working with nested frameworks
body: <p>I've got a project with the following project decencies setup:</p>
  
  <pre><code>Main App 
      --&gt; UIFramework (own framework)
          --&gt; CoreFramework (own framework)
              --&gt; Mixpanel Third Party framework installed using carthage
  </code></pre>
  
  <p>Each framework is setup as a project dependency of the one above it, in other words:
  - CoreFramework contains the Mixpanel framework
  - UIFramework has a dependency on CoreFramework
  - The Main app has a dependency on the UIFramework</p>
  
  <p>This structure is setup on a common workspace.</p>
  
  <p>I can build and test each framework separately without any issues.
  My issue comes down to accessing the CoreFramework from the main app. </p>
  
  <p>If I grab my root view controller and write the following code:</p>
  
  <pre><code>import UIKit
  import UIFramework
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          let object = UIFrameworkClass()
          object.testFunction()
      }
  
  }
  </code></pre>
  
  <p>The app runs and builds on device without any issues.
  However, if I write this code:</p>
  
  <pre><code>import UIKit
  import UIFramework
  import CoreFramework
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          let object = UIFrameworkClass()
          object.testFunction()
  
          coreFrameworkGlobalTestFunction()
      }
  
  }
  </code></pre>
  
  <p>I am getting the following error when building:</p>
  
  <pre><code>Framework not found Mixpanel for architecture arm64
  </code></pre>
  
  <p>I've tried embedding and linking the Mixpanel framework directly to my app to no avail. </p>
  
  <p>Any ideas on what's causing this? How can I access classes and functions on the CoreFramework from my main app without getting an error?</p>
  
  <p>Many thanks.</p>