Pod提示The dependency “ is not used in any concrete target.

/ 0评 / 0

之前的Podfile是这样写的,以前都没有提示过错误,今天升级了新的xcode之后竟然报了一个
The dependency `MJRefresh` is not used in any concrete target.
的错误。

platform :ios, '8.0'         #手机的系统

pod 'MJRefresh'              #下拉刷新

经过查询发现是podfile的格式写的有问题,改成了下面的格式,就不会出现这个问题了

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'         #手机的系统
use_frameworks!              #个别需要用到它,比如reactiveCocoa

target 'your APP target' do
	pod 'MJRefresh'              #下拉刷新
end

评论已关闭。