New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use cocoapods in my framework? #111
Comments
Based on my experience: |
I have a project A, I drag a static lib project B to A for build framework, and I use cocoapods in project A, so the question is Can I use cocoapods libs in static lib project B ? |
I did something that sounds like that, this was my setup: Since the framework is basically a static lib, I can not add libs (libPod.a is a static lib) inside. It won't compile. But, what I can do is use cocoa pods to write the framework code (having access to the dependencies headers), but to make it work I need to remove the libPod.a dependency from "Link Binary with Libraries" in the project B. That way, I have access to the headers of the libs from cocoa pods but when you build your .Framework it won't complain about trying to ship a lib with a lib inside. Be aware that each time you run pod install, the libPod.a will be re linked to your project. Then, in the podfile in project A, I need to set the same dependencies that I had in podfile in project B and it should build without problem. Then, I publish in cocoa pods the Public Headers and the .framework file setting the dependencies to make it work. Again, hope it helps. |
https://github.com/wenzhaot/RW-iOSFramework |
Can I use cocoapods in my framework?
The text was updated successfully, but these errors were encountered: