Cocoapods ld:找不到-lPods-Projectname的库 [英] Cocoapods ld: library not found for -lPods-Projectname

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

问题描述

我已经安装了可可豆荚库和一些框架。现在,当我编译项目时,构建失败。

I've installed cocoa pods library and some frameworks through it. Now when I compile project the build fails.

错误:
ld:找不到-lPods-project的库
clang:错误:链接器命令退出代码1失败(使用-v查看调用)

Error: ld: library not found for -lPods-Project clang: error: linker command failed with exit code 1 (use -v to see invocation)

这里是文本的一部分:

Ld /Users/polzovatel/Library/Developer/Xcode/DerivedData/Project-bybevfqrgvqqldbzsgewqafpmylj/Build/Products/Debug-iphonesimulator/Project app/Project normal i386
    cd /Users/polzovatel/Projects/iOS-master/Project_iPhone
    export IPHONEOS_DEPLOYMENT_TARGET=6.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

我需要做些什么来解决这个问题?

What I need to do to fix this problem?

推荐答案

通过删除 Link Binary 中的-lPods-Projectname.a (对于较新版本,请删除 -lPods- 框架组下的Projectname.a

Fixed it by deleting the -lPods-Projectname.a in Link Binary (for newer versions, delete the -lPods-Projectname.a under the Frameworks group).

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

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