cocoapods:找不到库 [英] cocoapods: library not found for

查看:90
本文介绍了cocoapods:找不到库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


ld:未找到-l< libname>
的库clang:错误:链接器命令失败,退出代码为1(使用-v查看调用

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

我遇到了这样的问题。
我已经在一台Mac上创建了一个项目,但是当我将项目移至另一台计算机并尝试添加一个来自cocoapod的新库,链接器找不到新库。

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.

我尝试了很多功能:


  1. 通过 pod init 重新创建。

  2. pod更新

  3. 已清除缓存

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

rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update


  • 甚至重新安装了cocoapods。

  • Even reinstalled cocoapods.

    但是他们都没有帮助我。请帮助我找到解决方法。

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

    推荐答案

    几个小时后,我发现必须使用 $(inheri t)标记为图书馆搜索路径。我不知道为什么它不能在没有带标志的第一台计算机上工作。

    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.

    这篇关于cocoapods:找不到库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆