I am trying to organize a project in several modules. To simplify I have two modules:
- iOSAppModule - It is the top module
- DataProviderModule - Used by the iOSAppModule
So iOSAppModule is a project that depends on DataProviderModule. Therefore, DataProviderModule is a sub-project of iOSAppModule.
DataProviderModule works independently of the iOSAppModule. It has two targets: DataProviderModuleUI and DataProviderModuleStatic. DataProviderModuleUI is a target that provides a UI so externals can test the DataProviderModule. DataProviderModuleStatic is a Cocoa Touch Static Library that strips down the UI classes.
Now, the problem is: I am using cocoapods in the DataProviderModule and I can't use the DataProviderModule (with the Static target) on the iOSAppModule because it can't find the lPods.
Here is my current PodFile in DataProviderModule:
platform :ios, '5.0'
link_with ['DataProviderModuleUI', 'DataProviderModuleStatic']
pod 'MKNetworkKit', '~> 0.87'
The iOSAppModule doesn't use pods.