Cocoapods和Xcode, ld:不为-lAFNetworking找到的库。

[英]Cocoapods and Xcode, ld: library not found for -lAFNetworking


I have this pod file contains all of these libs

这个pod文件包含了所有这些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

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

我用“pod安装”成功地运行了它……但是当我尝试运行我的项目时,我得到了这个错误。

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

any idea how to solve this error?

你知道怎么解决这个错误吗?

2 个解决方案

#1


3  

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.

也许您需要将属性构建为活动架构,而不是在目标->构建设置中进行调试(在Pods项目和/或pod项目的目标af联网中)。还要确保包含了相应的有效架构(例如:“v7 arm64”)。您可能在构建项目时收到了编译警告。

#2


1  

Try to makes your ONLY_ACTIVE_ARCH setting in Target (not in Project) to YES and back to NO in order to reset some internal Xcode's cache reference.(NOTICE: Must make it YES first and then set it back to NO).

尝试在目标(不在项目中)设置您的唯一_active_arch设置,以返回YES并返回NO,以重置一些内部Xcode的缓存引用。(注意:必须先让它为YES,然后再设置为NO)。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2015/09/16/6e45aac2462ff515aac202e6994bed63.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号