Skip to content

Commit a7af8ba

Browse files
author
Dario Segura
committed
-[BUILD] Fixes build issues when the target path points to a different file system (like external hard drives)
1 parent 57b85e7 commit a7af8ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xcodebuild.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)