ios - Cocoapods 和 Xcode,ld : library not found for -lAFNetworking

标签 ios cocoapods xcode6.4

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

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”成功运行它...但是当我尝试运行我的项目时出现此错误

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

知道如何解决这个错误吗?

最佳答案

也许您需要在 Target->Build Settings for Debug 中将属性 Build Active Architecture Only 设置为 NO(在 Pods 项目和/或目标 AFNetworking of Pods 项目中)。还要确保包含相应的有效架构(例如“armv7 arm64”)。您可能在构建项目时收到了编译警告。

关于ios - Cocoapods 和 Xcode,ld : library not found for -lAFNetworking,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32612101/

相关文章:

ios - #import <Library/Library.h> 和 #import <Library.h> 使用 CocoaPods 有什么区别?

ios - 更新到 iOS 9 后,Xcode 6.4 不支持我的设备

ios - Swift、Xcode 6.4 中可重用的 UILabel 样式

ios - 将照片保存到照片库中的文件夹

audio - 低录音音量结合 AVAudioSessionCategoryPlayAndRecord

ios - Xcode - iAd 错误 : The operation couldn’t be completed. 横幅 View 可见但没有内容

ios - React Native iOS pod 设置有重复的目标问题

ios - iOS如何等待直到 `didReceiveData`处理程序被调用

ios - 创建自己的 cocoapods 库后,当 pod install my pod 时,只有 ReplaceMe.m 文件

ios - 在 Swift 中使用 NSTimer 查找选择器时出错