简体   繁体   中英

Is it possible to convert dynamic framework to static library in Xcode?

Is it possible to convert dynamic framework to static library?

The problem is that I don't have a source code of framework, but only SomeFramework.framework file which is dynamic library for few architectures

Create a " Cocoa Touch Framework " and add your .framework to the " Linked frameworks and Libraries " then you can:

  • Go to Build Settings > Match-O Type > choose what you want...

or

  • you can also add a "static library" as new target of your dynamic framework.

Don't forget to add the modulemap / Umbrella to expose what you want.

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