File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,9 @@ def build(self):
166166 os .path .join (framework_dir , name ))
167167
168168 # Move public headers:
169- os .renames (self .devicebuildarm64 .public_headers_path (), headers_dir )
169+ for filename in os .listdir (self .devicebuildarm64 .public_headers_path ()):
170+ shutil .move (os .path .join (self .devicebuildarm64 .public_headers_path (), filename ), headers_dir )
171+ #shutil.move(self.devicebuildarm64.public_headers_path(), headers_dir)
170172
171173 # Use lipo to create one fat static library:
172174 lipo_cmd = ["lipo" , "-create" ,
@@ -192,7 +194,7 @@ def build(self):
192194 "A" , "Headers" )
193195 if os .path .exists (self ._built_product_path ):
194196 shutil .rmtree (self ._built_product_path )
195- os . rename (framework_dir , self ._built_product_path )
197+ shutil . move (framework_dir , self ._built_product_path )
196198 else :
197199 self ._built_product_path = framework_dir
198200 self ._public_headers_path = headers_dir
You can’t perform that action at this time.
0 commit comments