Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually create framework from static library

Tags:

People also ask

How to create a framework in iOS?

In order to create an iOS Framework you need to click on File -> New -> Project (Shift + Cmd + N) -> Framework (under iOS tab, Framework & Library section). Framework under Framework & Library section.

How to create framework in iOS objective c?

How to start : Open Xcode tool, start by clicking on new project from top menu bar and then on File. Choose Cocoa Touch Framework Option from the dialog. Choose whatever name you want, here I am using AppColors as it contains all the necessary colors required for the branding of your app.


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