CircleCI is configured to capture many logs from iOS builds, such as from Gym and Scan.
Instructions
You need to set the environment variable
FL_OUTPUT_DIR
to the artifact directory where FastLane logs and signed.ipa
the file should be stored.You can then use an environmental variable to set the path in the
store_artifacts
step to automatically save logs such as Gym and Scan.An example config can be found below:
# .circleci/config.yml
version: 2.1
jobs:
build-and-test:
macos:
xcode: 14.0.1
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: test
steps:
- checkout
- run: bundle install
- run:
name: Fastlane
command: bundle exec fastlane $FASTLANE_LANE
- store_artifacts:
path: output
- store_test_results:
path: output/scan
adhoc:
macos:
xcode: 14.0.1
environment:
FL_OUTPUT_DIR: output
FASTLANE_LANE: adhoc
steps:
- checkout
- run: bundle install
- run:
name: Fastlane
command: bundle exec fastlane $FASTLANE_LANE
- store_artifacts:
path: output
workflows:
build-test-adhoc:
jobs:
- build-and-test
- adhoc:
filters:
branches:
only: development
requires:
- build-and-test
More information can be found in the iOS Best Practices documentation.
Comments
Article is closed for comments.