iosobjective-csdkframeworks

How can we share sdk/Framework which is having library, to some other project?


I want to share framework in another app. I am facing issues when I have some libraries/pods like Alamofire in my framework. what is the solution of this problem? How can I use that library in framework? Also I tried to install Alamofire pod in to the other app in which I have added framework, and tried to access in my framework class but this was not accessible. Please guide me how to do it.


Solution

  • You can use Cocoapods to achieve that. Basically, cocoapods will create a framework for you from the source files that you define and will also install the appropriate dependencies that you define in the target project when the target project does pod install.

    Apart from cocoapods, you can also use Carthage which is also a dependency management tool.

    You can read more about cocoapods here and how to create a new pod here