Skip to content

Commit 3595a37

Browse files
committed
Fix iOS target-specific signing
1 parent ffa212f commit 3595a37

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

mobile/ios/fastlane/Fastfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ platform :ios do
2424
UI.user_error!("IOS_PROFILE_NAME is required") if profile_name.to_s.empty?
2525
UI.user_error!("IOS_TEAM_ID is required") if team_id.to_s.empty?
2626

27+
update_code_signing_settings(
28+
path: "App/App.xcodeproj",
29+
use_automatic_signing: false,
30+
team_id: team_id,
31+
targets: ["App"],
32+
bundle_identifier: bundle_id,
33+
profile_name: profile_name,
34+
code_sign_identity: sign_identity
35+
)
36+
2737
build_ios_app(
2838
workspace: "App/App.xcworkspace",
2939
scheme: "App",
@@ -35,10 +45,7 @@ platform :ios do
3545
export_method: "app-store",
3646
xcargs: [
3747
"DEVELOPMENT_TEAM=#{Shellwords.escape(team_id)}",
38-
"CODE_SIGN_STYLE=Manual",
3948
"PRODUCT_BUNDLE_IDENTIFIER=#{Shellwords.escape(bundle_id)}",
40-
"PROVISIONING_PROFILE_SPECIFIER=#{Shellwords.escape(profile_name)}",
41-
"CODE_SIGN_IDENTITY=#{Shellwords.escape(sign_identity)}",
4249
].join(" "),
4350
export_options: {
4451
signingStyle: "manual",

0 commit comments

Comments
 (0)