I run into this error when adding KIF to an existing Xcode 6 workspace:
ld: library not found for -lPods-MyProjectTests-KIF
What may be special about my situation that MyProject.xcworkspace/
resides in the parent directory of MyProject.xcproject/
(and depends on several other sibling projects as well):
./MyProject.xcworkspace/
./MyProject/
./MyProject/MyProject.xcworkspace/
./MyProject/Podfile
My Podfile
is as follows:
target 'MyProjectTests', :exclusive => true do
pod 'KIF', '~> 3.0', :configurations => ['Debug']
workspace 'MyProject'
end
When I run pod --project-directory=./MyProject install
and open MyProject.xcworkspace
the target MyProject
still compiles but I get the cited link error when building MyProjectTests
.
How can I overcome that problem?
UPDATE My guess by now is that some settings are not inherited correctly from Pods-MyProjectTests.*.xcconfig
perhaps due to previous edits that removed $(inherited)
s at the project or target level in some places (although this should normally produce warnings).