ios - 链接器命令失败,退出代码为 1(使用 -v 查看调用),在 xcode-Cocoapods 中构建应用程序

标签 ios xcode cocoapods

我在 xcode 7 中构建我的应用程序,并收到以下错误:

ld: 找不到-lAFNetworking 的库 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

error

Cocoapods 用于在应用程序中加载必要的库,如下所示:

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

target 'myapp' do
  # Uncomment this line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  pod 'AFNetworking', '~> 3.0'
  pod 'MBProgressHUD', '~> 0.9.2'
  pod 'Reachability', '~> 3.2'
  pod 'SDWebImage', '~> 3.8.1'
  pod 'ZipArchive', '~> 1.4.0'
  pod 'JDFTooltips', '~> 1.1'

end

我该怎么办?

最佳答案

我有类似的问题。

1) 清理派生数据 (~/Library/Developer/Xcode/DerivedData)

2) 产品 -> 清洁 -> 重建

3) 打开 Pods Targets 并设置 Build Active Architecture Only - NO

关于ios - 链接器命令失败,退出代码为 1(使用 -v 查看调用),在 xcode-Cocoapods 中构建应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37947332/

相关文章:

ios - 无法在 iPad iO 上锁定屏幕方向

xcode - 如何使用 faSTLane Fastfile channel 自动化 xcode clean 过程

ios - 使用 use_native_modules react Native Pod 问题

ios - settings.bundle ios 配置 iOS8

ios - iOS 中的 RSS 应用程序 : Detecting the existence of a feed through UIWebView

ios - SearchBar 加载 plist 时出现问题

Xcode 4 - IB - 均匀分布控件?

ios - CocoaPods with XCode 6.0.1 - 如何修复以红色显示的 Pods Frameworks?

ios - Firebase SDK 不适用于 iOS 10

ios - UITableView.RectForHeaderInSection 导致 'Request for rect of invalid section' 异常,为什么?