简体   繁体   中英

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

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

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)

any idea how to solve this error?

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 (eg 'armv7 arm64'). You may have received a Compilation Warning while building the project.

尝试将Target(不在Project中)中的ONLY_ACTIVE_ARCH设置设置为YES并返回NO以重置某些内部Xcode的缓存引用。(注意:必须首先使其为YES,然后将其设置为NO)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM