@@ -70,16 +70,11 @@ def run(config: ScriptConfig):
70
70
'xcodebuild' ,
71
71
'archive' ,
72
72
'-verbose' ,
73
- '-project' ,
74
- xcode_project_path ,
75
- '-scheme' ,
76
- 'LDKFramework' ,
77
- '-destination' ,
78
- f'generic/platform={ current_destination } ' ,
79
- '-derivedDataPath' ,
80
- derived_data_directory ,
81
- '-archivePath' ,
82
- xcarchive_output_path ,
73
+ '-project' , xcode_project_path ,
74
+ '-scheme' , 'LDKFramework' ,
75
+ '-destination' , f'generic/platform={ current_destination } ' ,
76
+ '-derivedDataPath' , derived_data_directory ,
77
+ '-archivePath' , xcarchive_output_path ,
83
78
'ENABLE_BITCODE=NO' ,
84
79
'EXCLUDED_ARCHS="i386 armv7"' ,
85
80
'SKIP_INSTALL=NO' ,
@@ -94,12 +89,18 @@ def run(config: ScriptConfig):
94
89
shutil .rmtree (derived_data_directory )
95
90
96
91
# XCFRAMEWORK_INPUT_FLAGS="${XCFRAMEWORK_INPUT_FLAGS}-framework ${CURRENT_ARCHIVE_PATH}.xcarchive/Products/Library/Frameworks/LDKFramework.framework "
97
- framework_input_flags += ['-framework' , f'{ xcarchive_output_path } .xcarchive/Products/Library/Frameworks/LDKFramework.framework' ]
92
+ framework_input_flags += [
93
+ '-framework' ,
94
+ f'{ xcarchive_output_path } .xcarchive/Products/Library/Frameworks/LDKFramework.framework'
95
+ ]
98
96
99
97
# xcodebuild -create-xcframework ${XCFRAMEWORK_INPUT_FLAGS} -output ${XCFRAMEWORK_OUTPUT_PATH}"
100
98
if os .path .exists (xcframework_output_path ):
101
99
shutil .rmtree (xcframework_output_path )
102
- subprocess .check_call (['xcodebuild' , '-create-xcframework' , * framework_input_flags , '-output' , xcframework_output_path ])
100
+
101
+ subprocess .check_call (
102
+ ['xcodebuild' , '-create-xcframework' , * framework_input_flags , '-output' , xcframework_output_path ]
103
+ )
103
104
104
105
105
106
if __name__ == '__main__' :
0 commit comments