We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af94337 commit 58b5641Copy full SHA for 58b5641
runner.py
@@ -16,6 +16,8 @@
16
import argparse
17
import json
18
import sys
19
+import os
20
+import shutil
21
22
import common
23
import project
@@ -42,6 +44,12 @@ def main():
42
44
xcodebuild_flags = args.add_xcodebuild_flags
43
45
xcodebuild_flags += (' ' if xcodebuild_flags else '') + 'DEBUG_INFORMATION_FORMAT=dwarf'
46
47
+ # Cleanup clang Module cache from any recently built clang compilers to prevent swift
48
+ # project build failures
49
+ for root, dirs, files in os.walk("/var/folders"):
50
+ if root.endswith("/clang/ModuleCache") and os.path.isdir(root):
51
+ shutil.rmtree(root)
52
+
53
# Use clang for building xcode projects.
54
if args.clang:
55
xcodebuild_flags += ' CC=%s' % args.clang
0 commit comments