「Ios/swift/外部ライブラリ/インストール」の版間の差分
ナビゲーションに移動
検索に移動
ページの作成:「==macにcocoapadsをインストール== $ sudo gem update --system $ sudo gem install cocoapods 以下のようにエラーが返ってくる場合は Operation not...」 |
編集の要約なし |
||
| 11行目: | 11行目: | ||
$ pod setup | $ pod setup | ||
> Setup completed | > Setup completed | ||
==Podfile作成== | |||
$ vi Podfile | |||
platform :ios,'9.0' | |||
use_frameworks! | |||
target 'Helloworld' do | |||
pod 'AlamofireImage' | |||
end | |||
==pod install== | |||
$ pod install | |||
Analyzing dependencies | |||
Downloading dependencies | |||
Installing Alamofire (3.4.1) | |||
Installing AlamofireImage (2.4.0) | |||
Generating Pods project | |||
Integrating client project | |||
2016年6月20日 (月) 19:24時点における版
macにcocoapadsをインストール
$ sudo gem update --system $ sudo gem install cocoapods
以下のようにエラーが返ってくる場合は
Operation not permitted - /usr/bin/fuzzy_match
このようにする(El Capitanからインストールフォルダが/usrの下へのインストールがアクセスできなくなったため)
$ sudo gem install -n /usr/local/bin cocoapods
cocoapodsのsetup
$ pod setup > Setup completed
Podfile作成
$ vi Podfile
platform :ios,'9.0'
use_frameworks!
target 'Helloworld' do
pod 'AlamofireImage'
end
pod install
$ pod install Analyzing dependencies Downloading dependencies Installing Alamofire (3.4.1) Installing AlamofireImage (2.4.0) Generating Pods project Integrating client project