LoginSignup
8
8

More than 5 years have passed since last update.

Playgroundでcocoapods使う方法

Posted at

まずは普通にxcodeでworkspace作る

ターミナルで作ったworkspaceのディレクトリに移動して

pod setup
pod init

Podfileにplaygroundで使いたいpodを書いて

pod install

ここまではPodをインストールする手順

ここからはPodを使えるplaygroundを作成する手順

gem install cocoapods-playgrounds
pod playgrounds 使いたいpod名

使いたいpodが複数ある場合は

pod playgrounds 使いたいpod名 & 使いたいpod名

ここからがよくわかんないけど、そのままでは使いたいpodをimportしても、No such Moduleって怒られる。なので、一度ターゲットを使いたいpodに変えてbuildすると怒られずに動くようになった。ここらへんはもうちょっとしっかり調査する。

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