Update ruby 1. Install rvm RVM: Ruby Version Manager, Ruby version manager, including Ruby version management and Gem library management (gemset) 1. Install rvm curl -L get.rvm.io | bash -s stable 2. source ~/.bashrc source ~/.bash_profile 3. Display the native version rvm -v is 2.0.0 on my computer 4. List all versions rvm list known 5. Install 2.3.0 rvm install 2.3 6. Test verification rvm -v
update gems 1. gem sources -l default *** CURRENT SOURCES ***https://rubygems.org/ We need to install Taobao's support FQ 2. Remove gem sources —-remove https://rubygems.org/ result https://rubygems.org/ removed from sources 3. Installation gem sources -a https://ruby.taobao.org/ result https://ruby.taobao.org/ added to sources 4. Verify gem sources -l https://ruby.toabao.org/
install cocoapods 1. cocoapods are not cocoa pods, so only 10 will be downloaded, actually 28 sudo gem install cocoapods 2. Settings pod setup Need to download 400m, wait patiently. . . . View progress usage cd ~/.cocoapods du -sh * if it has been 56K rest Don't worry, wait, it will jump to 1.3M
4. Actual combat 1. Create a new Xcode project Add Podfile in the root directory platform :ios, '8.0' #use_frameworks! Individual needs to use it, such as reactiveCocoa def pods under 'MBProgressHUD', '~> 1.0.0' end target 'myappname' do pods end 2. Use
Donate to developers
Driven by interest, I write 免费
something with joy and sweat. I hope you like my work and can support it at the same time. Of course, if you have money to support a money field (the love sign in the upper right corner, support Alipay and PayPal donations), if you have no money to support a personal field, thank you.
Thank you for your sponsorship, I will do better!