•  


CocoaPods Guides - Getting Started

Getting Started

< What is CocoaPods

CocoaPods manages library dependencies for your Xcode projects.

The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.

Ultimately the goal is to improve discoverability of, and engagement in, third party open-source libraries by creating a more centralised ecosystem.

< Prefer video?

Google have created a great overview for Route 85 video series going through this entire guide and more.

< Getting Started

< Installation

CocoaPods is built with Ruby and it will be installable with the default Ruby available on macOS. You can use a Ruby Version manager, however we recommend that you use the standard Ruby available on macOS unless you know what you're doing.

Using the default Ruby install will require you to use sudo when installing gems. (This is only an issue for the duration of the gem installation, though.)

$ 
sudo 
gem 
install 
cocoapods

If you encounter any problems during installation, please visit this guide.

< Sudo-less installation

If you do not want to grant RubyGems admin privileges for this process, you can tell RubyGems to install into your user directory by passing either the --user-install flag to gem install or by configuring the RubyGems environment. The latter is in our opinion the best solution. To do this open up terminal and create or edit your .bash_profile with your preferred editor. Then enter these lines into the file:

export 
GEM_HOME
=
$HOME
/.gem
export 
PATH
=
$GEM_HOME
/bin:
$PATH

Note that if you choose to use the --user-install option, you will still have to configure your .bash_profile file to set the PATH or use the command prepended by the full path. You can find out where a gem is installed with gem which cocoapods . E.g.

$ 
gem 
install 
cocoapods 
--user-install

$ 
gem which cocoapods
/Users/eloy/.gem/ruby/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods.rb
$ 
/Users/eloy/.gem/ruby/2.0.0/bin/pod 
install

< Updating CocoaPods

To update CocoaPods you simply install the gem again

$ 
[
sudo
]
 gem 
install 
cocoapods

Or for a pre-release version

$ 
[
sudo
]
 gem 
install 
cocoapods 
--pre

If you originally installed the cocoapods gem using sudo , you should use that command again.

Later on, when you're actively using CocoaPods by installing pods, you will be notified when new versions become available with a CocoaPods X.X.X is now available, please update message.

Using a CocoaPods Fork

There are two ways to do this, using a Gemfile (recommended) or using a development build that are in discussion or in implementation stage.

< Using CocoaPods

Head over to Using CocoaPods for details on the usage of CocoaPods.

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본