0
0

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 5 years have passed since last update.

CocoaPodsの作業ディレクトリ"Xcode project directory"

0
Posted at

https://cocoapods.org/
で、GET STARTEDを読んで始めるときに、

Search for pods (above). Then list the dependencies in a text file named Podfile in your Xcode project directory:

どこどこ、と思ったので、調べてφ(..)メモメモした記事です。

Xcode project directory

Xcodeでプロジェクトを作ったときに、.xcodeproj が存在するディレクトリです。

Podfileを作る

そのフォルダでPodfileの雛形を作りましょう。

pod init

すると、Podfileというファイルができるので、次のコマンドで開きます

open -a Xcode Podfile

開いたファイルは以下のようになっているので

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MyApp' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MyApp

end

ここからはCocoaPodsのGET STARTEDに戻って、同じように
podから始まる行を追加します。

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
  pod 'AFNetworking', '~> 2.6'
  pod 'ORStackView', '~> 3.0'
  pod 'SwiftyJSON', '~> 2.3'
end

以上です!

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?