Skip to content

Commit f6bba65

Browse files
committed
ci: update use of scheme, targets and provising profiles
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent 8eb7a3b commit f6bba65

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

DesignToolbox/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use_frameworks!
1515

1616
platform :ios, '15.0'
1717

18-
target 'DesignToolbox' do
18+
target 'DesignToolbox (iOS)' do
1919
pod 'SwiftLint', '0.62.1'
2020
pod 'SwiftFormat/CLI', '0.58.3'
2121
end

DesignToolbox/fastlane/Fastfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ GITHUB_ACCESS_TOKEN = ENV['GITHUB_ACCESS_TOKEN']
6262

6363
OUDS_WORKSPACE = "DesignToolbox.xcworkspace"
6464
OUDS_PROJECT = "DesignToolbox.xcodeproj"
65-
OUDS_SCHEME = "DesignToolbox"
65+
OUDS_SCHEME_DEFAULT = "DesignToolbox"
66+
OUDS_TARGET_IOS = "DesignToolbox (iOS)"
6667
OUDS_SNAPSHOTS_SNAPSHOTS_TEST_SCHEME = "DesignToolboxSnapshotsTests"
6768
OUDS_SNAPSHOTS_UI_TEST_SCHEME = "DesignToolboxUITests"
6869
OUDS_SNAPSHOTS_UNIT_TEST_SCHEME = "DesignToolboxUnitTests"
@@ -95,7 +96,7 @@ platform :ios do
9596
lane :check_dead_code do
9697
puts "👉 Check dead code with Periphery"
9798

98-
sh "periphery scan --project ../#{OUDS_WORKSPACE} --schemes #{OUDS_SCHEME} --format xcode"
99+
sh "periphery scan --project ../#{OUDS_WORKSPACE} --schemes #{OUDS_SCHEME_DEFAULT} --format xcode"
99100
end
100101

101102
# ------------------------------------------------------------
@@ -297,7 +298,7 @@ platform :ios do
297298
end
298299

299300
gym(
300-
scheme: OUDS_SCHEME,
301+
scheme: OUDS_SCHEME_DEFAULT,
301302
output_directory: 'build/',
302303
archive_path: 'build/',
303304
output_name: 'odsApp',
@@ -503,17 +504,17 @@ platform :ios do
503504

504505
# Disable automatic code signing for release / distribution builds.
505506
# Thus we won't use any Xcode with plugged account in, and use only needed certificates and provisioning profiles.
506-
# Mobile provisioning profile named "OUDS demo app (release)" must be placed in runner.
507+
# Mobile provisioning profile named "OUDS iOS app (release)" must be placed in runner.
507508
# The certificate(s) used to build (with bundle ID) the provisionning profile must be available in the keychain of the runner
508509
# (both .cer and .p12), here a distribution certificate.
509510
# This way is more agile and allows to use VM-based solution with on the fly configuration like with Tart.
510511
update_code_signing_settings(path: "#{OUDS_PROJECT}",
511512
use_automatic_signing: false,
512-
profile_name: 'OUDS demo app (release)',
513-
targets: OUDS_SCHEME)
513+
profile_name: 'OUDS iOS app (release)',
514+
targets: OUDS_TARGET_IOS)
514515

515516
gym(workspace: "#{OUDS_WORKSPACE}",
516-
scheme: OUDS_SCHEME,
517+
scheme: OUDS_SCHEME_DEFAULT,
517518
configuration: "Release",
518519
output_directory: "build/",
519520
export_method: "app-store",
@@ -789,7 +790,7 @@ platform :ios do
789790
def get_app_version
790791
version = get_version_number(
791792
xcodeproj: OUDS_PROJECT,
792-
target: OUDS_SCHEME
793+
target: OUDS_TARGET_IOS
793794
)
794795
return version
795796
end

0 commit comments

Comments
 (0)