pod lib create 报错 undefined method `to_set'

当执行命令

pod lib create MyLibrary

输入完要填写的项后报错:

/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.5.8/lib/xcodeproj/project/object/helpers/build_settings_array_settings_by_object_version.rb:27:in `': undefined method `to_set' for # (NoMethodError)

Did you mean?  to_s


这是xcodeproj1.5.8版本下的一个bug

解决方法:

1.更新gem的库

sudo gem update --system


2.更新xcodeproj

sudo gem install xcodeproj

3.查看xcodeproj版本

xcodeproj --version

4.重新执行

pod lib create MyLibrary


得到结果

Ace! you're ready to go!

We will start you off by opening your project in Xcode

  open 'MyLibrary/Example/MyLibrary.xcworkspace'


完美؏؏☝ᖗ乛◡乛ᖘ☝؏؏

你可能感兴趣的:(pod lib create 报错 undefined method `to_set')