Skip to content

Commit 752389e

Browse files
authored
Test codeql (#4579)
1 parent 0b396e0 commit 752389e

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

fastlane/Fastfile

+22-3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@ lane :test_modules do |options|
8282
)
8383
end
8484

85+
desc """
86+
A lane for building for CodeQL analysis
87+
"""
88+
lane :build_simulator do |options|
89+
# clear_derived_data # Required otherwise raw xcodebuild doesn't work reliably
90+
build_app(
91+
project: PROJECT_NAME,
92+
xcargs: "-allowProvisioningUpdates -disableAutomaticPackageResolution -onlyUsePackageVersionsFromResolvedFile",
93+
disable_package_automatic_updates: true, # Probably redundant because of `disableAutomaticPackageResolution` xcarg, but won't harm
94+
scheme: ALPHA_SCHEME,
95+
clean: true,
96+
silent: false,
97+
export_method: "ad-hoc",
98+
destination: "generic/platform=iOS Simulator",
99+
skip_package_ipa: true,
100+
skip_archive: true
101+
)
102+
end
103+
85104
desc """
86105
A lane that builds a \"Tangem\" scheme and uploads the archive to TestFlight for release.
87106
Using enviroment: Production
@@ -102,9 +121,9 @@ lane :release do |options|
102121
increment_testflight_build_number(version: options[:version], build: options[:build])
103122

104123
build(
105-
scheme: PRODUCTION_SCHEME,
106-
version: options[:version],
107-
filename: PRODUCTION_SCHEME,
124+
scheme: PRODUCTION_SCHEME,
125+
version: options[:version],
126+
filename: PRODUCTION_SCHEME,
108127
path: BUILD_PATH,
109128
analyze_archive: options[:analyze_archive],
110129
code_sign_identity: options[:code_sign_identity],

fastlane/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ Options:
4040
- xcode_version_override: Xcode version to use, optional (uses https://github.com/XcodesOrg/xcodes under the hood)
4141

4242

43+
### build_simulator
44+
45+
```sh
46+
[bundle exec] fastlane build_simulator
47+
```
48+
49+
50+
A lane for building for CodeQL analysis
51+
52+
4353
### release
4454

4555
```sh

0 commit comments

Comments
 (0)