@@ -21,7 +21,7 @@ def app_store_api_key!
2121 )
2222end
2323
24- def write_export_options_plist ( path :, team_id :)
24+ def write_export_options_plist ( path :, team_id :, bundle_id : , profile_name : , sign_identity : )
2525 File . write (
2626 path ,
2727 <<~PLIST
@@ -35,8 +35,15 @@ def write_export_options_plist(path:, team_id:)
3535 <false/>
3636 <key>method</key>
3737 <string>app-store-connect</string>
38+ <key>provisioningProfiles</key>
39+ <dict>
40+ <key>#{ bundle_id } </key>
41+ <string>#{ profile_name } </string>
42+ </dict>
43+ <key>signingCertificate</key>
44+ <string>#{ sign_identity } </string>
3845 <key>signingStyle</key>
39- <string>automatic </string>
46+ <string>manual </string>
4047 <key>stripSwiftSymbols</key>
4148 <true/>
4249 <key>teamID</key>
@@ -68,7 +75,13 @@ platform :ios do
6875
6976 FileUtils . rm_rf ( export_path )
7077 FileUtils . mkdir_p ( output_dir )
71- write_export_options_plist ( path : export_options_path , team_id : team_id )
78+ write_export_options_plist (
79+ path : export_options_path ,
80+ team_id : team_id ,
81+ bundle_id : bundle_id ,
82+ profile_name : profile_name ,
83+ sign_identity : sign_identity
84+ )
7285
7386 update_code_signing_settings (
7487 path : app_path ( "App.xcodeproj" ) ,
0 commit comments