Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include pods in another subproject?

I have a workspace with one main project, pods and 2 other subprojects. Those subprojects are not meant to be run independently, they are built into frameworks and linked to main target.
One of subprojects (let's call it SubA) has a dependency, that I added to main podfile.
But since cocoapods 1.0.0 came out, I cannot build SubA, it does not see that imported pod. It gives error on import No such module ....
Before 1.0.0 everything worked out of box. And I cannot make it a subpod, because it depends on another subproject, SubA, so keeping in sync all these would be a hassle.

like image 490
Roman Temchenko Avatar asked Dec 21 '25 19:12

Roman Temchenko


1 Answers

Adding ${BUILT_PRODUCTS_DIR} recursive to FRAMEWORK_SEARCH_PATHS of sub-project solved the problem.

like image 53
Roman Temchenko Avatar answered Dec 24 '25 10:12

Roman Temchenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!