We're having some issues integrating CocoaPods in the Calabash target.
At the moment we have 4 targets:
App: normal app target
AppTests: unit tests target
App-Calabash: calabash target
App-API-Stubs: special target
We want to share all the Pods between App, App-Calabash and App-API-Stubs. Also, AppTests and App-Calabash have to include other libraries.
This is our Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
link_with 'App', 'App-Calabash', 'App-API-Stubs'
inhibit_all_warnings!
pod 'MagicalRecord', '~> 2.2'
pod 'AFNetworking', '~> 2.3.1'
pod 'ObjectiveSugar', '~> 1.1.0'
pod 'KZPropertyMapper', '~> 2.5.0'
pod 'FXBlurView', '~> 1.6.2'
pod 'OHHTTPStubs', '~> 3.1.5'
pod 'Google-Maps-iOS-SDK', '~> 1.8.1'
pod 'KVOController', '~> 1.0.1'
pod 'Braintree', '~> 3.3.1'
pod 'TTTAttributedLabel', '~> 1.10.1'
pod 'ObjectiveLuhn', '~> 1.0.0'
pod 'CrashlyticsFramework', '~> 2.2.1'
target 'App-Calabash', :exclusive => true do
pod 'Calabash', '~> 0.9.169'
end
target 'AppTests', :exclusive => true do
pod 'Specta', '~> 0.2.1'
pod 'Expecta', '~> 0.3.0'
pod 'OCMock', '~> 3.1.1'
end
All the targets build and run just fine but the Calabash one.
It complains it can't find Crashlytics/Crashlytics.h
. But even if we temporary avoid to use Crashlytics, it then complains about the Calabash library during the linking:
ld: warning: directory not found for option '-L/Users/Marco/ios/App/Pods/build/Debug-iphoneos'
ld: file not found: -lPods-App-Calabash-Calabash
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So it would seem something is gone terribly wrong integrating pods into that specific target.
I'm pretty sure I'm missing something simple but I can't figure it out.
Any help is really appreciated. Thanks!