xcodebuild
Use the xcodebuild command to build and sign your app
Note:
xcodebuildis complex command, so used gym for building your ipa file and scan for testing your app instead to the use the gym is recommended.
| xcodebuild | |
|---|---|
| Supported platforms | ios, mac |
| Author | @dtrenz |
1 Example
xcodebuild( archive: true, archive_path: "./build-dir/MyApp.xcarchive", scheme: "MyApp", workspace: "MyApp.xcworkspace")
Documentation
ターミナルにドキュメントを表示する場合です。 run
fastlane action xcodebuild
CLI
上記のアクションをFastfileに追加することをお勧めしますが、時には単発で実行したいこともあるでしょう。 そのためには、ターミナルから次のコマンドを実行します
fastlane run xcodebuild
パラメータを渡すには、例えば:シンボルを使用します
fastlane run xcodebuild parameter1:"value1" parameter2:"value2"
注意すべきは、CLIは整数、フロート、ブール、文字列などの基本型をサポートしていることです。 配列はカンマ区切りの文字列として渡すことができます(例:param:"1,2,3")。 ハッシュは現在サポートされていません。
使用するすべての Fastlane アクションを Fastfile.
に追加することが推奨されます。