mac系统升级后,使用cocoapods会报错,内如如下:
[!] The dependency SDWebImage
is not used in any concrete target.

解决方法:
$ cd Desktop/ —>进入桌面
$ cd 工程路径(拖拽即可)
$ touch Podfile
$ vim Podfile
更改前:
/*
platform :ios, ‘8.0(为例)’
pod 'SDWebImage'
Esc + :wq
*/
更改后:
platform :ios, '8.0'
target "工程名" do
pod 'ReactiveCocoa'
pod 'objectiveflickr'
pod 'LinqToObjectiveC'
pod 'SDWebImage'
end
$ pod install
网友评论