首页 > 技术文章 > CocoaPods安装第三方出错:XCode7.3

blogwithstudyofwyn 2016-07-20 11:35 原文

错误[!] The dependency `Masonry (~> 0.6.1)` is not used in any concrete target.

在之前,我使用的版本是XCode7.0及以前的版本,现在更新到XCode7.3.  在写demo时,添加第三方总是报各种"The dependency `XXXXX` is not used in any concrete target."的错。

我在Podfile文件里中一直使用的格式是

platform :ios, '7.0'
pod 'AFNetworking', '~>2.6.0'
pod 'Masonry','~>0.6.1'
pod 'SDWebImage', '~>3.7'
pod 'Reachability', '3.2'

目前该为下面的格式就正确了

platform :ios, '7.0'
target ‘LazyLoadDemoWithMasonry’ do 
pod 'Masonry','~>0.6.1'
end

参看资料:http://blog.csdn.net/sjl_leaf/article/details/50506057

推荐阅读