Answer the question
In order to leave comments, you need to log in
How to package static library in pod for iOS?
Hello. I am new to iOS development and working with Xcode. Interested in the following question.
There is a code base written in C. I would like to use it in Android and iOS applications. To do this, I want to pack it into a library, and in such a way that in the future it would be possible to distribute it through the standard dependency manager.
With android, the situation is quite clear, I wrote a simple JNI wrapper, and a set of classes to call it. It turned out a separate package, which later I can publish in bintray - everything is fine.
Please tell me how to do the same for iOS? And is it even possible?
I suppose that first, you need to compile a C project, and, if I'm not mistaken, both for ARM and for x86 architecture, then put it in a pod, which can then be distributed?
Thanks in advance
Answer the question
In order to leave comments, you need to log in
If you are using the cocoapods dependency manager then this is possible. You create a project in Objective-c, import your C-files there, arrange it all with a pod.
cocoapods-making-guide
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question