I'm having a problem with integrating a cocoa pod (CocoaLumberjack
in this case) into an iOS app and my own frameworks.
The Podfile
looks like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"
target "CommonModule" do
use_frameworks!
# CocoaLumberjack wasn't officially released with Swift support yet
# pod 'CocoaLumberjack'
pod 'CocoaLumberjack', :git => 'git@github.com:CocoaLumberjack/CocoaLumberjack.git', :commit => '6882fb5f03696247e394e8e75551c0fa8a035328'
xcodeproj 'CommonModule/CommonModule.xcodeproj'
end
I have a hierarchy of modules (dynamic frameworks) like this:
CommonModule
ModelsModule
(has a dependencyCommonModule
)
And finally, the main app:
MySwiftApp
(dependency bothModelsModule
andCommonModule
)
Now, CocoaLumberjack
is used in several files in CommonModule
and works as expected. However, every time I do import CommonModule
in any file in ModelsModule
, I get the following compile error:
~/Developer/ModelsModule/ModelsModule/SomeFile.swift:2:8: error: missing required module 'CocoaLumberjack'
import CommonModule
^
Any idea how to solve this issue?
UPDATE: Some people Recommend to use Carthage. I would like to avoid that, if possible.