# CocoaPods for Xcode
Manage your dependencies, with minimal command line hack-fu
## Features
- Downloads and integrates CocoaPods listed in a project's Podfile
- Creates podspecs from a template
- Shows command output in the window console
- Installs documentation (from CocoaDocs) for the CocoaPods used in the open Xcode workspace
- Supports using a custom path to your CocoaPods installation
- Supports `$GEM_HOME` expansion, `$GEM_PATH` expansion, and `rvm` environments
![Menu](https://github.com/kattrali/cocoadocs-xcode-plugin/raw/master/menu.png)
## Prerequisites
- Xcode 5+
- CocoaPods 0.22.1+, by default expected to be installed to `/usr/bin/pod`. The installation path can be changed by editing `GEM PATH` in the `Product > CocoaPods` menu. More details can be found in the Usage section.
## Install
Install via [Alcatraz](http://alcatraz.io/)
OR
Clone and build the project, then restart Xcode.
## Uninstall
Uninstall via [Alcatraz](http://alcatraz.io/)
OR
Run `rm -r ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/CocoaPods.xcplugin/`
## Usage
### Custom GEM_PATH setting
You can specify a custom GEM_PATH in the `Product > Cocoapods` menu. The default is `/usr/bin` and removing a custom value will restore the default. Both `$GEM_HOME` and `$GEM_PATH` are supported, along with `rvm` environments. That means the following settings are valid:
```
/usr/bin
/usr/local/bin
$GEM_HOME/bin
${GEM_HOME}/bin
$GEM_PATH/bin
${GEM_PATH}/bin
/SOME_PARENT/$GEM_HOME/bin
/SOME_PARENT/$GEM_PATH/bin
```
When specifying `$GEM_PATH` each path component will be expanded during command resolution. That means the following:
```
$GEM_PATH/bin
expands to...
/Users/jappleseed/.rvm/gems/ruby-2.0.0-p247@my_gemset:/Users/jappleseed/.rvm/gems/ruby-2.0.0-p247@global
expands to...
/Users/jappleseed/.rvm/gems/ruby-2.0.0-p247@my_gemset/bin:/Users/jappleseed/.rvm/gems/ruby-2.0.0-p247@global/bin
```
During command resolution, each path will be tested (in order) so that the first match is used.
Path expansion and command resolution occurs each time before a command is run. For an `rvm` environment, `.ruby-version` and `.ruby-gemset` (in the root project directory) can dynamically alter the environment and Cocoapods supports this behavior.
#### Using GEM_PATH with rvm
Under most circumstances in an `rvm` environment the following custom `GEM_PATH` setting should be used:
![Suitable rvm setting](https://github.com/kattrali/cocoadocs-xcode-plugin/raw/master/menu_rvm.png)
NOTE: Behind the scenes, the `/bin` path element will be converted to `/wrapper` for rvm. If `.rvm` is not found in the expanded path, the `/bin` path element will remain unmodified.
## [Contributors](https://github.com/kattrali/cocoapods-xcode-plugin/graphs/contributors)
## License
**cocoapods-xcode-plugin** is [licensed under the MIT open source license](https://github.com/kattrali/cocoapods-xcode-plugin/blob/master/LICENSE).
没有合适的资源?快使用搜索试试~ 我知道了~
安装cocoaPods控件
共40个文件
m:9个
h:8个
plist:2个
需积分: 3 131 下载量 129 浏览量
2015-07-04
14:18:55
上传
评论
收藏 102KB ZIP 举报
温馨提示
非常方便的Xcode pods插件。可以很方便的在Xcode通过pods安装各种objective-c第三方库,省去以前还要手动去跑pods命令行的麻烦;此外,还支持通过cocoaDocs来安装库文档。 项目地址:https://github.com/kattrali/cocoapods-xcode-plugin
资源推荐
资源详情
资源评论
收起资源包目录
cocoapods-xcode-plugin-master.zip (40个子文件)
cocoapods-xcode-plugin-master
CocoaPods.xcodeproj
project.xcworkspace
contents.xcworkspacedata 154B
xcshareddata
Cocoadocs.xccheckout 1KB
project.pbxproj 28KB
xcshareddata
xcschemes
CocoaPods.xcscheme 3KB
cocoadocs
CocoaPods.h 1KB
Helpers
CCPWorkspaceManager.m 3KB
CCPProject.m 5KB
CCPProject.h 2KB
CCPPathResolver.m 8KB
CCPDocumentationManager.h 1KB
CCPShellRunner.m 2KB
CCPRunOperation.m 11KB
CCPShellRunner.h 1KB
CCPXCodeConsole.m 5KB
CCPXCodeConsole.h 1KB
CCPWorkspaceManager.h 1KB
CCPDocumentationManager.m 1KB
CCPRunOperation.h 1KB
CCPPathResolver.h 2KB
CocoaPods-Info.plist 2KB
DefaultPodspec 533B
PodPathView.xib 3KB
CocoaPods-Prefix.pch 95B
DefaultPodfile 118B
en.lproj
InfoPlist.strings 215B
CocoaPods.m 16KB
Podfile 78B
LICENSE 1KB
CONTRIBUTING.md 529B
CocoaPods.xcworkspace
contents.xcworkspacedata 169B
Podfile.lock 130B
.gitignore 271B
menu.png 27KB
README.md 3KB
menu_rvm.png 30KB
CocoaPodsTests
CocoaPodsTests-Prefix.pch 172B
CocoaPodsSpec.m 6KB
CocoaPodsTests-Info.plist 689B
en.lproj
InfoPlist.strings 45B
Xcode.podspec 584B
共 40 条
- 1
资源评论
土鳖不土
- 粉丝: 31
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功