見出し画像

iOS開発初期化の手順書

プロジェクトの初期化

Xcodeでプロジェクトを作成する

Gemfileを初期化

$ bundle init

Gemfileを記述

gem "cocoapods"
gem "fastlane"

Ruby系のライブラリを更新

$ bundle install

Fastlaneの初期化前にApp IDを作成

過去にバグで困ったためApp IDの生成はFastlaneを使わない。 https://developer.apple.com/account/ にアクセスして手動で行う。

Fastlaneを初期化

$ bundle exec fastlane init
default_platform(:ios)

platform :ios do
  desc "Push a new release build to the App Store"
  lane :release do
    increment_build_number()
    build_app(scheme: "LifeShare")
    upload_to_app_store(skip_metadata: true, skip_screenshots: true)
  end
end

CocoaPodsを初期化

$ bundle exec pod init

サポート頂けたらめっちゃ喜びます!