File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ require "shellwords"
2+
13default_platform ( :ios )
24
35platform :ios do
@@ -36,11 +38,24 @@ platform :ios do
3638 readonly : ENV [ "CI" ] == "true"
3739 )
3840
41+ matchProvisioningProfileMapping = lane_context [ SharedValues ::MATCH_PROVISIONING_PROFILE_MAPPING ] || { }
42+ provisioningProfileSpecifier = matchProvisioningProfileMapping [ "opfic.DevLog" ] . to_s . strip
43+
44+ UI . user_error! ( "Missing provisioning profile mapping for opfic.DevLog" ) if provisioningProfileSpecifier . empty?
45+
46+ buildAppXcargs = [
47+ "-skipPackagePluginValidation" ,
48+ "CODE_SIGN_STYLE=Manual" ,
49+ "DEVELOPMENT_TEAM=#{ ENV [ "APP_STORE_TEAM_ID" ] } " ,
50+ "CODE_SIGN_IDENTITY=#{ Shellwords . escape ( "Apple Distribution" ) } " ,
51+ "PROVISIONING_PROFILE_SPECIFIER=#{ Shellwords . escape ( provisioningProfileSpecifier ) } "
52+ ]
53+
3954 build_app (
4055 project : "DevLog.xcodeproj" ,
4156 scheme : "DevLog" ,
4257 export_method : "app-store" ,
43- xcargs : "-skipPackagePluginValidation"
58+ xcargs : buildAppXcargs . join ( " " )
4459 )
4560
4661 next api_key
You can’t perform that action at this time.
0 commit comments