0

I am using cocoapods in one of my projects and after I cleaned the derived data for my project I have started seeing this error

ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/Bolts'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/DownPicker'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/MBProgressHUD'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/Parse'
ld: warning: directory not found for option '-L/Users/vishal/Library/Developer/Xcode/DerivedData/SensorLab-ctzyiyrpdclyjybpujriezgkckkn/Build/Products/Debug-iphoneos/SCLAlertView-Objective-C'
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I open up the Debug-iphoneos from Window > Projects I do not see any folders in there now. Since this problem started cropping up after cleaning derived data I do not really know what did I do which stopped generating those folders.

This is how it looks : enter image description here

This is kind of how it should look, I imagine (From a different project) enter image description here

I have tried what was suggested here

Cocoapods ld: library not found for -lPods-Projectname

Cocoapods ld: library not found for -lPods-ObjectiveSugar

And a couple more things which I have tried but to no avail, I have faced my fair share of cocoapod niggles. This seems beyond me.

EDIT: I have been doing some more tests with this, I realized that my pods are not even building ! When I clear derived data for any other project, it goes ahead and builds the Pods next time I try to build the project, but not in this project. What setting can wrong ?

This is how the project looks right now : enter image description here

Any help will be appreciated.

Community
  • 1
  • 1
vishalv2050
  • 813
  • 1
  • 10
  • 18

2 Answers2

0

Clean up cocoa pods and install them again.enter image description here

You can also use tool - https://github.com/CocoaPods/cocoapods-deintegrate

Sasha Kozachuk
  • 1,283
  • 3
  • 14
  • 21
  • I have already done that. Deintegrated it and integrated it all over again. The three steps you have highlighted are present in the build phases as well. – vishalv2050 Dec 21 '16 at 09:37
0

Somehow the option of Find Implicit Dependencies got turned off in the build scheme. SMH. Hope this can help someone in the future.

enter image description here

vishalv2050
  • 813
  • 1
  • 10
  • 18