Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

pepabo-mobile-app-training/piyopiyo

Repository files navigation

piyopiyo

Build Status

開発環境準備

Carthage

Carthageをインストールする

ライブラリの管理はCarthageを使用します。 brew install carthage

Carthageでライブラリ管理

  • carthage update --platform ios:新たにライブラリを追加した時
  • carthage bootstrap --platform iOS:すでにあるライブラリをChecked outする時 

SwiftLint

コードの品質チェックはSwiftLintを使用します。 brew install swiftlint

ルールを削除したり、変更したりするときは.swiftlint.ymlに記述します。 ルールの詳細は、SwiftLint/Rules.mdに記載があります。

環境変数の設定

Twitter APIの使用のために以下の2つを環境変数として設定します。

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)

Xcodeのメニューから Product > Scheme > Edit Scheme を選択します。

左サイドメニューから『Run』を選択します。

『Environment Variables』に下記を設定します。

  • Name: consumerKey, Value: Consumer Keyの値
  • Name: consumerSecret, Value: Consumer Secretの値