0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CocoaPodsで外部のライブラリの導入方法

Last updated at Posted at 2020-06-29

多くのプロジュエクトが外部のライブラリを使っています。
Githubからプロジェクトをダウンロードして、ライブラリの導入したり、インストールしたりする必要です。

必要のライブラリの導入方法

1.ターミナルでpodバージョンを確認
pod --version
バージョンが1.7.5より古い、またはpodがインストールしていない場合は下記のコマンドで更新またインストールします。

gem sources --remove https://rubygems.org/
gem sources --add https://gems.ruby-china.com/
//pod install
sudo gem install cocoapods -n /usr/local/bin
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
//update pod local library
pod setup

2.プロジェクト関連のライブラリを追加します。
プロジュエクトが必要なラブラリの定義はPodfileで記載します。

//cd 実際のxiaozhiboのフォルダのパス 例えば: 
cd ~/iOs/XiaoZhiBo
// Podfileから必要なラブラリをインストール
pod install

参考資料

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?