The dependency ``is not used in any concrete target?
The dependency `SDWebImage `is not used in any concrete target
根據(jù)網(wǎng)友博客,首先更新一下cocoapods
sudo gem install cocoapods --pre
然后改寫Podfile
platform :ios, '8.0'
#use_frameworks!個(gè)別需要用到它,比如reactiveCocoa
target ?'MApp' ?do
?pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
?pod 'SwiftyJSON', '~> 2.3'
end
里面的?MApp?記得替換為自己攻城里面的target。這樣就基本OK了,執(zhí)行pod install / pod update 就都可以了。(use_frameworks! 這個(gè)是個(gè)別需要的,這里修改一下,可以把我上面的代碼中的這一行【刪除】)
下面是另外一種寫法,
platform:ios,'8.0'
#use_frameworks!個(gè)別需要用到它,比如reactiveCocoa
def pods?
? ?pod'AFNetworking','~> 2.6'
? pod'ORStackView','~> 3.0'
? ?pod'SwiftyJSON','~> 2.3'
end
target 'MyApp' do?
? ?pods
end