Cocoapods和Xcode,ld:找不到用于-lAFNetworking的库 [英] Cocoapods and Xcode, ld: library not found for -lAFNetworking

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

问题描述

我有这个pod文件包含所有这些库

I have this pod file contains all of these libs

platform :ios, "7.0"

target "PP for iPad" do
pod 'AFNetworking', '1.1'
pod 'RaptureXML', '1.0'
pod 'NoticeView'
pod 'iVersion'
pod 'iRate'
pod 'Facebook-iOS-SDK', '3.13.1'
pod 'StackMob'
pod 'SSZipArchive'
pod 'ODRefreshControl'
pod 'SDWebImage'
pod 'TPKeyboardAvoiding'
pod 'LXPagingViews'
pod 'AQGridView'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end

我成功运行了'pod install'...但是当我尝试运行我的项目,但出现此错误

I ran it successfully with 'pod install' ... but when I try to run my project i get this error

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

任何解决方法错误?

推荐答案

也许您需要在目标->调试的构建设置中将仅将Active Active Architecture属性设置为NO Pods项目和/或Pods项目的目标AFNetworking中。另外,请确保包含相应的有效架构(例如 armv7 arm64)。构建项目时,您可能会收到编译警告。

Maybe you need set the property Build Active Architecture Only to NO in Target->Build Settings for Debug (in the Pods Project and/or in the target AFNetworking of Pods project). Also make sure that the corresponding Valid Architectures are included (e.g. 'armv7 arm64'). You may have received a Compilation Warning while building the project.

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

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