Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library not found for -llib. (clang: error: linker command failed with exit code 1 (use -v to see invocation))

I am working on a project that was previously done and uploaded on app store.When I run this app in Xcode 5.0 it is working fine but when I run this on Xcode Version 5.1.1 (5B1008) I am getting Linker error on both device and simulator.

Error Message- Library not found for -llib. (clang: error: linker command failed with exit code 1 (use -v to see invocation)).

I have searched a lot but I didn't get any thread about Library not found for -llib error. Is there anything I have to change in build settings to resolve this?

like image 891
Imran Avatar asked Aug 11 '14 08:08

Imran


1 Answers

Look at the linker command line in detail for the -L options being used:

enter image description here

Then use Terminal or Finder to see if your libXXX.a file exists in those directories. If the library exists elsewhere then you need to configure your Library Search Paths:

enter image description here

However there several details which you have not provided in your question when using a library within an app:

  • Is the library built as part of the Xcode project/workspace (as in the first image)?
  • Is the library supplied by a third-party with binary (.a) and header files (as in the second image)?
like image 120
trojanfoe Avatar answered Sep 20 '22 19:09

trojanfoe