简体   繁体   中英

Manually create framework from static library

I have question about creating framework manually from static library (for example LibraryName ). I tested this solution:

  • created folder LibraryName.framework
  • created subfolder LibraryName.framework/Headers and copied headers from source library
  • renamed LibraryName.a to file LibraryName.framework/LibraryName

and it is working under Xcode. But I have question: is it good way to do it like this ?

--
Regards
Adam

Yes, this is fine. You can even link the static library against its dependencies and create a dynamic library. Both solutions will work.

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