I have two swift projects, application
and library
, where library
is a dependency of application
. I have a Podfile
configured as so;
workspace 'myworkspace'
platform :ios, '9.0'
use_frameworks!
target :library do
project 'library/library.xcproject'
pod 'GCDWebServer', '~> 3.0'
target :application do
project 'application/application.xcproject'
end
end
After running pod install
successfully, I open myworkspace
in Xcode, and find application
as the currently selected scheme. Immediately building results in failure, due to;
No such module 'library'
To solve this I need to change the current scheme to library
, build, then switch the scheme back to application
and it will successfully build.
Questions;
- Is this expected, or a bug in xcode and/or CocoaPods, or have I configured something incorrectly?
- Does this mean I need to separately build
library
anytimelibrary
source changes occur to reflect those changes inapplication
builds?
Xcode 7.3, CocoaPods 1.0.1, repo