The dependency `AFNetworking (~> 2.5)` is not used in any concrete target

吃可爱长大的小学妹 提交于 2019-11-30 00:42:22

问题


I want to install AFNetworking but I have a problem, how can I fix and install? I used Getting Started with AFNetworking :

1. Download CocoaPods

sudo gem install cocoapods
pod setup

2.a. Create a Podfile

touch Podfile
open -a Xcode Podfile

2.b. And copy-paste this:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.5'

回答1:


Add:

target 'MyApp' do
  pod 'AFNetworking', '~> 2.5'
end

See: https://guides.cocoapods.org/using/the-podfile.html

Then run pod install from the project directory.



来源:https://stackoverflow.com/questions/37464977/the-dependency-afnetworking-2-5-is-not-used-in-any-concrete-target

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!