[!] Invalid `Podfile` file: Unsupported platform `iOS`. Platform must be `:ios`, `:osx`, `:tvos`, or

今天在用Cocopods 安装ReactiveObjc时,报这个错误

[!] Invalid `Podfile` file: Unsupported platform `iOS`. Platform must be `:ios`, `:osx`, `:tvos`, or `:watchos`..

先看下是怎么写的呢

platform :iOS, '9.0'

target 'ReactiveCocoaDemo' do

pod 'ReactiveObjC', '~> 2.1.0'

end

哎,奇葩啦,一直就是这流程呀,咋就出问题了
若是不注意看错误提示,还真容易忽略呢,我写的iOS,后面两个单词大些,人家给的提示是要小写:ios

platform :ios, '9.0'

target 'ReactiveCocoaDemo' do

pod 'ReactiveObjC', '~> 2.1.0'

end

猜你喜欢

转载自blog.csdn.net/ycf03211230/article/details/79664061