简体   繁体   中英

cocoapods: library not found for

ld: library not found for -l<libname> clang: error: linker command failed with exit code 1 (use -v to see invocation

I have got a such problem. I've created a project in one Mac. But when I move project to another computer and try to add a new library from cocoapod the linker cannot find a new library.

I've tried a lot of features:

  1. recreated via pod init .
  2. pod update
  3. cleared cache

     rm -rf "${HOME}/Library/Caches/CocoaPods" rm -rf "`pwd`/Pods/" pod update 
  4. Even reinstalled cocoapods.

  5. removed old workspace file.
  6. etc.

But none of them helped me. Please, help me find the solution.

A few hours later I found that I have to use $(inherit) flag for 'Library Search Path' . I do not know why it worked in the first computer without with flag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM