Avijit Nagare
Avijit Nagare

Reputation: 8782

How to build Framework from Static library in iOS?

I have .a files of all Architecture i.e. arm64, armv7,armv7s.

Now i want to build a Framework from all static library how to do that? now i have Universal .a file and headers how to convert into framework?

Upvotes: 3

Views: 8703

Answers (1)

p2pkit
p2pkit

Reputation: 1215

A static framework on iOS is basically a folder structure.

You could use command line tools (basically a script) to "create" the folder structure suitable for a framework after xCode has finished compiling the Library.

You would need to add "Run Script Build Phase" and add all the necessary commands.

Have a look at this tutorial: https://www.raywenderlich.com/65964/create-a-framework-for-ios

Upvotes: 4

Related Questions