找不到-lPods-AFNetworking的库 [英] library not found for -lPods-AFNetworking

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

问题描述

使用AFNetworking时出现以下错误:

I am getting the following error when using AFNetworking:


''找不到-lPods-AFNetworking的库''

链接器命令失败,退出代码为1(使用-v到
请参阅调用)。

我检查了所有缺失的框架,它们都存在。此外,这个项目适用于其他人(我们从github拉出来)而且我是唯一的人不起作用。(它是一个联合项目)

I checked for all missing frameworks,and they are all present .Additionally this project works for other people(we pulled it from github) and I'm the only person for whom it does not work.(its a joint project)

我们都使用Xcode 6.2。我不明白什么可能是错的或什么遗失。我尝试使用命令行,sourceTree甚至Xcode git源代码控制。

We all use Xcode 6.2. I do not understand what could be wrong or what went missing. I tried pulling using the command line,sourceTree and even from Xcode git source control.

我也尝试过不同版本的Xcode。但是所有其他的同伴都在使用Xcode 6.2,我现在正在使用它。

I also tried different versions of Xcode. But all the other teamates are using Xcode 6.2, which I am using now.

以前它曾经工作过,它突然停止工作了。

It used to work before, it suddenly stopped working.

欢迎任何想法,谢谢!

以下是详细错误:


ld:警告:找不到选项的目录
'-L / Users / ramapriyasridharan / Documents / Rama-3:06:2015-ios / Mapbox '
ld:警告:找不到选项'-L / Users / ramapriyasridharan / Documents / Rama-3:06:2015-ios / Pods / build / Debug-iphoneos'
ld:library not找到-lPods-AFNetworking
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

ld: warning: directory not found for option '-L/Users/ramapriyasridharan/Documents/Rama-3:06:2015-ios/Mapbox' ld: warning: directory not found for option '-L/Users/ramapriyasridharan/Documents/Rama-3:06:2015-ios/Pods/build/Debug-iphoneos' ld: library not found for -lPods-AFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation)

编辑:

打开工作区文件后,我没有再收到mach O链接器错误,但是我收到以下错误:

After opening the workspace file, I did not get the mach O linker error any more, but I am getting the following error:

Command /Volumes/Xcode 1/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/momc failed with exit code 1

我问我的队友们说它仍然可以正常工作,所以它是st仅在我的计算机上出现问题!

I asked my team mates who said that it still works fine,so it is still a problem only on my computer!

推荐答案

您应该打开WorkSpace文件,而不是打开XCode项目。

Instead of opening the XCode project, you should open up the WorkSpace file.

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

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