简体   繁体   中英

Include public headers of static library in a dynamic framework

I'm developing a dynamic framework for iOS. This framework uses a static library, which is integrated with CocoaPods :

+--MyDynamicFramework
   +--PublicHeader1.h
   +--PublicHeader2.h
   +--Sources
   +--Pods
      +--StaticLib
         +--PublicHeader3.h
         +--StaticLib.a

Now, I'm using PublicHeader3.h (which is part of StaticLib ) in the sources of my dynamic framework, but I'd also like to expose it as a public header of the dynamic framework I'm building. So an App that uses my dynamic framework should be able to see all three public headers. Is this possible, and if yes, how?

Build Settings -> Header Search Path -> Add PATH of MyDynamicFramework/Pods/StaticLib

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM