pod 新格式

执行 $pod install 的时候,报一下错误:

Analyzing dependencies

[!] The dependency `MJExtension` is not used in any concrete target.

因为我的Podfile格式有语法错误:

platform :ios, '8.0'

pod 'MJExtention'

改正后:

platform :ios, '8.0'

target 'targetName' do

  pod 'MJExtention'

end

也可以:

platform :ios, '8.0'

def pods

  pod 'AFNetworking', '~> 2.6'

  pod 'MJExtention'

end

target 'MyApp' do

  pods

end

然后在工程目录的终端:

pod install 或者 pod update

就可以安装对应的第三方库了

原文地址:https://www.cnblogs.com/wjw-blog/p/5958369.html