1

集成(目标 C)Xcode 7.2 iOS 9.2:

$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoa pods  (automatic pods version (0.39))
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ cd/ to project folder
$ pod init
$ open -a Xcode Podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!

target 'ProjectName' do

pod 'AFNetworking', '~> 2.0.3'
end

target 'ProjectNameTests' do
end

$ pod install

Xcode 给出错误“找不到-lAFNetworking 的库”

在谷歌周围搜索:尝试过的东西:

  1. 从目标>构建设置>其他链接器标志中删除了所有内容,除了$(继承),编译但不走运

  2. 来自( https://github.com/CocoaPods/cocoapods-deintegrate )的 Deintegrated pods 插件再次安装编译但不走运

  3. 尝试使用标题搜索路径和框架搜索路径进行实验,但不走运。

4

2 回答 2

0

您是否打开了 Workspace 或 Project 文件?验证您是否打开了第一个

于 2016-02-16T05:38:42.957 回答
0

确保 Pods 完全安装!!!并打开安装 pod 后生成的 Workspace 文件!

于 2016-02-16T05:51:26.753 回答