Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: ld: library not found for -lPods with CocoaPods

after i installed DTCoreText (https://github.com/Cocoanetics/DTCoreText) with Cocoapods i always get an error when i try to run the simulator or device!

ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos' ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos' ld: library not found for -lPods-example clang: error: linker command failed with exit code 1 (use -v to see invocation)  

in my "Link Binary With Libraries" the "libPods" Part is red:

enter image description here

Here are my build Settings:

The Settings of my Project:

enter image description here

The Settings of my Pods:

enter image description here

EDIT:

I´m not exactly sure what was the Problem, but I solved it when i deleted all the DTCoreText and Cocoapods stuff and reeinstalled everything again!

like image 977
Davis Avatar asked May 06 '14 08:05

Davis


People also ask

How do I add dependencies to CocoaPods?

After you have initially installed CocoaPods into your project, you can add new dependencies (or remove unused ones) by editing the Podfile. Then simply run pod install again.


1 Answers

Suggest trying the following, that worked for me:

a) Search from 'Library' from the Target Settings view and double-click to inspect the value of Library Search Paths

b) There are two values listed $(inherited) and $(PROJECT_DIR)/Pods/build/Debug-iphoneos. Delete the latter.

c) Do a full clean, build & run

d) Run pod install again. Notice that the entry is not restored.

like image 170
gemmakbarlow Avatar answered Sep 24 '22 00:09

gemmakbarlow