diff --git a/runner.py b/runner.py index 5b970f3b..2ec7b1da 100755 --- a/runner.py +++ b/runner.py @@ -16,6 +16,8 @@ import argparse import json import sys +import os +import shutil import common import project @@ -42,6 +44,12 @@ def main(): xcodebuild_flags = args.add_xcodebuild_flags xcodebuild_flags += (' ' if xcodebuild_flags else '') + 'DEBUG_INFORMATION_FORMAT=dwarf' + # Cleanup clang Module cache from any recently built clang compilers to prevent swift + # project build failures + for root, dirs, files in os.walk("/var/folders"): + if root.endswith("/clang/ModuleCache") and os.path.isdir(root): + shutil.rmtree(root) + # Use clang for building xcode projects. if args.clang: xcodebuild_flags += ' CC=%s' % args.clang