Deploy apps to the App Store using FastLane
Building an
Fastlane is responsible for building your application using an operation called build_app, just add the following to your “Fastfile” :
lane :release do
build_app(scheme: "MyApp")
end
Copy the code
In addition, you can specify more options for building applications, for example
lane :release do
build_app(scheme: "MyApp",
workspace: "Example.xcworkspace",
include_bitcode: true)
end
Copy the code
Run the RealSE configuration using the following command
fastlane release
Copy the code
If all is well, you should have a file “[ProductName].ipa” in the current directory. To get a list of all available parameters for build_app, run “Fast Channel Operation Build_app”.
The signature
It may have been an error due to the code signing of the previous step. We’ve prepared our own code signing guide to help you set up the right code signing method for your project.
Submit our App
Generating screen shots
For more information on how to automatically generate screenshots for the App Store, check out Fastlane: Mobile App CICD Best For iOS Project Environment Settings and Certification.
Upload binaries and application metadata
Once your App is built, you can upload it to the App Store. If you’ve been interested in using Fastlane for iOS project testing, we’ve used the following code before
lane :release do
capture_screenshots # generate new screenshots for the App Store
sync_code_signing(type: "appstore") # see code signing guide for more information
build_app(scheme: "MyApp")
upload_to_app_store # upload your app to App Store Connect
slack(message: "Successfully uploaded a new App Store build")
end
Copy the code
Fastlane automatically passes the generated screen shots and binary information to the Fastfile corresponding to “upload_to_app_store”.
To view the options for an action, run fastlane Action [action_name]. To view
More details
For more details on how “upload_to_app_store” works and how to define more options, see upload_to_app_store.