やり始める前に...
fastlane自体の導入やFabricの登録はここでは紹介しません。
参考: [iOS] fastlaneの導入
導入
今回使いたいプロジェクトのディレクトリ内に移動する。
fastlaneディレクトリに入る
$ cd fastlane
Fastfileを開く
その中に以下のように記述
Fastfile
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
# match(type: "appstore") # more information: https://codesigning.guide
# increment_build_number
# increment_version_number
# ********は適宜自分のに置き換えてください
cert
sigh(force: true)
gym(
use_legacy_build_api: true,
workspace: '********.xcworkspace',
scheme: "********",
configuration: 'Release'
)
crashlytics(
crashlytics_path: './Crashlytics.framework',
api_token: '************************************************',
build_secret: '************************************************',
ipa_path: './********.ipa',
groups: '********'
)
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end