title: How can frameworks used by a static library be automatically imported on iOS?
body: <p>My company makes a static library for iOS apps. One annoying step for developers is that they have to manually link against all the required frameworks that the library uses, and failing to do so leads to somewhat confusing compiler errors.</p>
  
  <p>I would have previously thought this wasn't possible, but the company Chartboost claims to <a href="https://help.chartboost.com/downloads/ios" rel="nofollow">automatically link against non-default frameworks</a> like AdSupport and StoreKit. Based on my testing in their sample app (available from the linked page), so far this appears to be the case (Even when disabling "Enable Modules" and "Link Frameworks Automatically" in the app that links against the static library).</p>
  
  <p>Is there some way to enable this feature when creating a static library? I've tried enabling modules and the "Link Frameworks Automatically" LLVM options in Xcode, but so far haven't been able to get it working.</p>