Reputation: 1208
I just starting using CocoaPods and I am getting the following errors when I pod install from the terminal (My project is called babyMilestones and I'm trying to use CocoaPods for the ShipLib Framework). :
The
babyMilestones [Release]
target overrides theFRAMEWORK_SEARCH_PATHS
build setting defined inPods/Target Support Files/Pods/Pods.release.xcconfig
. This can lead to problems with the CocoaPods installation.
- Use the$(inherited)
flag, or,
- Remove the build settings from the target.
I'm getting this error for Header Search Paths and Framework Search Paths.
When I try to build my project I get an error on the #import<ShipLib/ShipLib.h> line saying the ShipLib/ShipLib.h file cannot be found. In my project navigator my Pods project is showing properly, and the ShipLib framework is visible.
I never set any of these search paths explicitly, I just let Xcode 6 do its thing. I found this answer.
I have tried the following:
ld: warning: directory not found for option '-L/Users/billpaystation/Documents/iOS/babyMilestones/babyMilestones/Pods/build/Debug-iphoneos'.
ld: warning: directory not found for option '-F<Multiple'
ld: warning: directory not found for option '-Fvalues>'
Undefined symbols for architecture i386: "OBJC_CLASS$_ActionSheetDatePicker", referenced from: objc-class-ref in EditItemViewController.o "OBJC_CLASS$_SYSincerelyController", referenced from: objc-class-ref in EditItemViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Action Sheet Picker and Sincerely Controller are the libraries I'm trying to add with Pods.
I don't really understand the whole target/build settings and I may have made it worse trying so many different things. Any help would be appreciated!
Upvotes: 14
Views: 21078
Reputation: 6181
In my case it was not an Xcode issue, plus I think that fixing it by hand is a bad idea. I tried to use a different (earlier version) of Cocoapods and it worked fine!
gem install cocoapods -v 0.33.1
Upvotes: 3
Reputation: 3704
Here's my problem and solution from yesterday.
target overrides the FRAMEWORK_SEARCH_PATHS build settings
Hope this helps.
Upvotes: 3
Reputation: 1143
You should add $(inherited) to the Framework Search Path. For the new errors you should go:
TargetSettings->Build Phases->Compile Sources->(+) ActionSheetDatePicker.m, and SYSincerelyController.m classes and then Build and Run.
Upvotes: 11