iOS cocopods报错[!] Invalid `Podfile` file: syntax error, unexpected tIDENTIFIER, expecting end-of-input

[!] Invalid `Podfile` file: syntax error, unexpected tIDENTIFIER, expecting end-of-input

target "HJ" dopod 'MJExtension'

^.

#  from /Users/hulijie/Downloads/WallpaperWeather-master/Podfile:2

#  -------------------------------------------

#  platform:ios, '8.0'

>  target "HJ" dopod 'MJExtension'

#  pod 'MBProgressHUD', '~> 0.9.2'

#  -------------------------------------------


明明有结尾还是会报错,是因为从低版本的,只有两句pod 'MBProgressHUD', '~> 0.9.2'的podfile文件修改为

platform:ios, ‘8.0’

target “HJ” do

pod 'MJExtension'

pod 'MBProgressHUD', '~> 0.9.2'

pod 'SVProgressHUD', '~> 2.0.3'

pod 'JSONKit-NoWarning', '~> 1.2'

pod 'MJRefresh', '~> 3.1.12'

pod 'AFNetworking', '~> 3.1.0'

pod "Qiniu", "~> 7.1"

pod 'SDWebImage', '~> 3.8.1'

end

加了

platform:ios, ‘8.0’

target “HJ” do

。。。

end

找了很多方法都没有解决,后来把加的

platform:ios, ‘8.0’

target “HJ” do

。。。

end

又去掉了,pod install一遍,提示:


这时候又把

platform:ios, ‘8.0’

target “HJ” do

。。。

end


加上去,再次pod install


ok了,收工!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容