Vitalii Gozhenko
Vitalii Gozhenko

Reputation: 9354

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

Upvotes: 11

Views: 5698

Answers (1)

Mohamed TAIEB
Mohamed TAIEB

Reputation: 94

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.

Upvotes: 2

Related Questions