cocoapods

Mac OS X 安装Ruby

末鹿安然 提交于 2020-01-10 11:07:39
Mac OS X 安装Ruby 安装CocoaPods第一步 起因:重装系统后需要重新安装CocoaPods网上搜了下发现很多都过时了,已经不能用了。而且taobao Gems源已经停止服务,现在有ruby-china提供服务 PS:"$"开头表示需要在终端下执行 1.安装RVM $ curl -L https://get.rvm.io | bash -s stable 期间可能需要输入密码(我安装时没有提示,密码就是开机密码输入时密码不会显示直接输入完成就可以),等待一段时间将安装好(大概五六分钟)。 2.载入RVM环境 若打开新终端窗口则不用执行 $ source ~/.rvm/scripts/rvm 3.检查RVM是否安装好 $ rvm -v 4.安装Ruby ##### 1>列出已知的ruby版本 $ rvm list known 2>选择2.0.0版本进行安装(其他版本也可以) 等待下载(途中需要按回车确定安装路径、还要输入密码)、编译。完成之后Ruby、Ruby Gems就安装好了 $ rvm install 2.0.0 3>查询已安装的ruby $ rvm list 4>卸载已安装的版本(若已经安装过ruby) $ rvm remove [版本号] 4.设置Ruby版本 $ rvm 2.0.0 —default 检查是否安装好了 $ rvm -v $ gem -v 5

OS10.11安装Cocoapods并集成ReactiveCocoa

别说谁变了你拦得住时间么 提交于 2020-01-10 10:53:00
最近换了一台机器, 发现上面没有安装Cocoapods, 因为自己的机器是在10.10的时候安装的没有发现问题, 更新了10.11之后发现cocoapods安装真是一个浩大的工程(那是之前没找对方法). 首先安装cocoapods的教程烂大街了, 百度下先. 1. 首先sudo gem update --system 卡住; 2.唉 不管了, 先把数据源改了再说 gem sources --remove https://rubygems.org/ gem sources -a https://ruby.taobao.org/ 看下gem sources -l看下数据源修改了没 3.安装Cocoapods sudo gem install cocoa pods 出现了pods:activesupport requires Ruby version >= 2.2.2错误, 看意思可以看出是Ruby的版本太低了, 升级下Ruby 找了下教程 : http://blog.csdn.net/lissdy/article/details/9191351 按照这个教程我安装了2.2.2版本  sudo gem install cocoa pods安装成功了; 4.最后一步也是坑死我的这一步, 执行 pod setup 很多人看到这个会卡在这个一直都不动, 那是因为他一直在向/User/用户名/

RKObjectMapping.h Not Found

最后都变了- 提交于 2020-01-10 06:52:42
问题 I "pod update", and my RestKit version now is 0.25.0, my RKValueTransformers is 1.1.2, and an error appeared "RKObjectMapping.h" not found. What did RestKit change in the new version, that I check on the its github cannot find anything. The following steps can reproduce the error: 1) Create a new project 2) pod init Podfile looks like: platform :ios, '8.3' #pod 'RestKit', '~> 0.20.0' #pod 'RestKit', '~> 0.24.1' pod 'RestKit' In all cases of different versions, the issue is the same 3) open

cocoapods安装及使用

时间秒杀一切 提交于 2020-01-10 05:06:49
最近新换了电脑,重新安装cocoapods遇到了很多问题,在这里把问题还有解决方案记录一下 一、安装 Cocoapods 在安装CocoaPods之前,首先要在本地安装好Ruby环境,一般Mac下都自带ruby。 用淘宝的Ruby镜像来访问cocoapods。按照下面的顺序在终端中敲入依次敲入命令: $ gem sources --remove https://rubygems.org/ //等有反应之后再敲入以下命令 $ gem sources -a http://rubygems-china.oss.aliyuncs.com 为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看: $ gem sources -l 只有在终端中出现下面文字才表明你上面的命令是成功的: *** CURRENT SOURCES *** http://rubygems-china.oss.aliyuncs.com 这时候,你再次在终端中运行: $ sudo gem install cocoapods 等上十几秒钟,CocoaPods就可以在你本地下载并且安装好了,不再需要其他设置。 到这里基本就下载并且安装好 ------------------------------------------------------------------------------------------

Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

这一生的挚爱 提交于 2020-01-10 03:56:13
问题 Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks Showing Recent Messages:-1: rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build

What's the equivalent of “development pods” under Carthage?

对着背影说爱祢 提交于 2020-01-09 19:33:26
问题 The teams developing frameworks for our iOS app are migrating from Cocoapods to Carthage. Under Cocoapods, I could set up dependencies as "development pods". For example, instead of having the main app download a specific version of an xyzzy dependency, I could set up xyzzy as a development pod and point it to my local directory where I had checked out xyzzy from its Git repo. While I was working in the main app's project, any edits I'd do to xyzzy 's files would be made in that directory.

iOS CocoaPods安装与使用

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-08 22:43:49
1.MAC安装Ruby环境 1> 安装RVM 控制台命令: $curl –L https://get.rvm.io | bash –s stable $source ~/.rvm/scripts/rvm $rvm –v (查看版本,检查是否安装正确) 2> 用rvm安装ruby环境 $rvm install 2.0.0 (期间需要按enter键输入管理员密码等) 内容很长,我这只截取前面一部分 $rvm 2.0.0 --detault (将上面用rvm install安装的那个版本设为系统默认版本) $ruby –v (查看ruby版本,检查是否安装正确) 2.安装CocoaPods 1> 通过淘宝的镜像来访问cocoapods 天朝,由于cocoapods.org被墙,我们可以使用淘宝的ruby镜像来访问 $gem sources --remove https://rubygems.org/ $gem sources –a http://ruby.taobao.org/ $gem sources –l (用该命令查看ruby镜像是否是taobao) 2> 安装CocoaPods $sudo gem install cocoapods (需要输入管理员密码) 3> 验证cocoapods是否安装成功 $pod 3.cocoapods的简单使用 1>

如何安装使用CocoaPods(新版)

旧街凉风 提交于 2020-01-08 04:57:53
/********************************安装ruby环境************************************/ $ curl -L https://get.rvm.io | bash -s stable 期间可能会问你sudo管理员密码,以及自动通过homebrew安装依赖包,等待一段时间后就可以成功安装好 RVM。 $ source ~/.rvm/scripts/rvm 检查一下是否安装正确 $ rvm -v   rvm 1.22.17 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] $ rvm install 2.0.0 同样继续等待漫长的下载,编译过程,完成以后,Ruby, Ruby Gems 就安装好了。 将指定版本的 Ruby 设置为系统默认版本 $ rvm 2.0.0 --default 同样,也可以用其他版本号,前提是你有用 rvm install 安装过那个版本 这个时候你可以测试是否正确 $ ruby -v   ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0] $ gem -v  2

Swift: How to install SwiftyJson using cocoapods?

家住魔仙堡 提交于 2020-01-07 08:57:12
问题 I'm trying to install cocoapods here: https://github.com/SwiftyJSON/SwiftyJSON but when I import SwiftyJSON in my view file, it says No such module 'SwiftyJSON' My Podfile: platform :ios, '8.0' inhibit_all_warnings! use_frameworks! target 'SherpaNewYork' do pod 'GoogleMaps' pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git' end After adding that I ran pod install succesfully: [~/Documents/ios/Sherpa]$ pod install ✭ git:master ruby:2.2.2 Updating local specs repositories

diff: /../Podfile.lock: No such file or directory

拥有回忆 提交于 2020-01-07 01:23:23
问题 am new to the iPhone app development.when i an running the application i getting the Bellow error. diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 回答1: The error message shows the solution, no pods are built. Open the terminal, go to the root of the project, then run: pod install If you don't have cocoapods installed, first run