小技巧 1:可通过键盘方向键或字母键 awsd、nl 快速查看前后项目哦
FastlaneSample
Tags:
This project is a simple example on how to use Fastlane (https://fastlane.tools/) in a KMP Project.
The project contains two main branches:
- main - Contains a simple KMP project created by the KMP Wizard (https://kmp.jetbrains.com/) and the fastlane configuration to build it for Android and iOS;
- kmmbridge-spm - Contains the same project, but updated to run using SPM and SPM Local Dev Flow;
How to run
- Install Fastlane using Bundler:
bundle install
- Run the Fastlane command:
bundle exec fastlane $platform $name
- Example:
bundle exec fastlane ios build
- Example:
Notes
- In the SPM Branch, we are setting an env var to use the local version. As we are not using a Package.swift file managed by the KMMBridge Plugin, we need to manually implement it.
- In both branches, iOS Code Signing is disabled to make it easier to run the project. In a real project, you should configure the code signing properly.