├── LICENSE ├── README ├── oclint-xcodebuild └── test ├── full-project-1 ├── full-project-1.json ├── full-project-2 ├── full-project-2.json ├── product-name-with-space ├── product-name-with-space.json ├── testAll.sh ├── xcode-5.0-5A11314m-pchpch └── xcode-5.0-5A11314m-pchpch.json /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012-2014 Longyi Qi, 2015 Ryuichi Saito, LLC. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright notice, this 7 | list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright notice, 9 | this list of conditions and the following disclaimer in the documentation 10 | and/or other materials provided with the distribution. 11 | * Neither the name of the author nor the names of its contributors may be used 12 | to endorse or promote products derived from this software without specific 13 | prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 19 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | oclint-xcodebuild 2 | ------------------------------------------------------------------------------- 3 | 4 | !!! 5 | This project is no longer under maintenance by OCLint team! 6 | Please consider using xcpretty (https://github.com/supermarin/xcpretty). 7 | 8 | Basically, if your command looks like this 9 | 10 | xcodebuild 11 | oclint-xcodebuild 12 | 13 | Then replace it with 14 | 15 | xcodebuild | xcpretty -r json-compilation-database 16 | 17 | ------------------------------------------------------------------------------- 18 | 19 | Since OCLint recognizes a file called compile_commands.json to figure out the 20 | compiler options for parsing each file, oclint-xcodebuild is a helper program 21 | that converts xcodebuild log to compile_commands.json. 22 | 23 | Visit http://oclint.org/docs/manual/oclint-xcodebuild.html for 24 | documentation about using oclint-xcodebuild. 25 | -------------------------------------------------------------------------------- /oclint-xcodebuild: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os 4 | import sys 5 | import json 6 | import argparse 7 | import re 8 | import shlex 9 | import StringIO 10 | import glob 11 | import itertools 12 | 13 | 14 | SUPPORTED_COMPILERS = [ 15 | "clang", 16 | "clang\+\+", 17 | "llvm-cpp-4.2", 18 | "llvm-g\+\+", 19 | "llvm-g\+\+-4.2", 20 | "llvm-gcc", 21 | "llvm-gcc-4.2", 22 | "arm-apple-darwin10-llvm-g\+\+-4.2", 23 | "arm-apple-darwin10-llvm-gcc-4.2", 24 | "i686-apple-darwin10-llvm-g\+\+-4.2", 25 | "i686-apple-darwin10-llvm-gcc-4.2", 26 | "gcc", 27 | "g\+\+", 28 | "c\+\+", 29 | "cc" 30 | ] 31 | 32 | DEFAULT_INPUT_FILE = "xcodebuild.log" 33 | 34 | JSON_COMPILATION_DATABASE = "compile_commands.json" 35 | 36 | 37 | _find_unsafe = re.compile('[ "\\\\]').search 38 | 39 | def clang_quote(s): 40 | """ 41 | Return a minimally-escaped version of the string *s* that clang-based tools understand. 42 | (See http://clang.llvm.org/docs/JSONCompilationDatabase.html) 43 | ex: 44 | clang_quote('aa') == r'aa' 45 | clang_quote('a"a') == r'"a\"a"' 46 | clang_quote('--my-option=a"a') == r'"--my-option=a\"a"' 47 | """ 48 | if not s: 49 | return '""' 50 | 51 | if _find_unsafe(s) is None: 52 | return s 53 | 54 | return '"' + s.replace('\\', '\\\\').replace('"', '\\"') + '"' 55 | 56 | 57 | _find_quoting = re.compile('[\'"\\\\]').search 58 | 59 | def tokenize_command(c): 60 | """Compute the list of shell arguments in *c* using shlex.split (note: make an explicit call to StringIO for compatibility with Python 2).""" 61 | if _find_quoting(c) is None: 62 | return map(str.strip, c.strip().split(' ')) 63 | else: 64 | return shlex.split(StringIO.StringIO(c)) 65 | 66 | # global table to map pth files to (source) pch files 67 | _pch_dictionary = {} 68 | 69 | def register_source_for_pth_file(clang_command, directory): 70 | tokens = iter(tokenize_command(clang_command)) 71 | src_file = "" 72 | pth_file = "" 73 | try: 74 | while 1: 75 | tok = tokens.next() 76 | if tok == '-c': 77 | file = tokens.next() 78 | src_file = file 79 | elif tok == '-o': 80 | file = tokens.next() 81 | if file.endswith('.pch.pth') or file.endswith('.pch.pch') or file.endswith('.h.pch'): 82 | pth_file = file 83 | except StopIteration: 84 | if src_file and pth_file: 85 | _pch_dictionary[pth_file] = src_file 86 | 87 | def get_source_for_pth_file(file): 88 | src_file = _pch_dictionary.get(file + '.pth') 89 | if src_file is not None: 90 | return src_file 91 | return _pch_dictionary.get(file + '.pch') 92 | 93 | def process_clang_command(clang_command, directory): 94 | tokens = iter(tokenize_command(clang_command)) 95 | command = [] 96 | source_file = None 97 | 98 | try: 99 | while 1: 100 | tok = tokens.next() 101 | if tok == '-include': 102 | include_file = tokens.next() 103 | if not os.path.isfile(include_file): 104 | src_file = get_source_for_pth_file(include_file) 105 | if src_file is not None: 106 | include_file = src_file 107 | else: 108 | print "cannot find original pch source file for %s" % include_file 109 | exit(3) 110 | command.append(tok) 111 | command.append(clang_quote(include_file)) 112 | 113 | elif tok == '-c': 114 | source_file = tokens.next() 115 | command.append(tok) 116 | command.append(clang_quote(source_file)) 117 | 118 | else: 119 | command.append(clang_quote(tok)) 120 | 121 | except StopIteration: 122 | return {"directory": directory, "command": " ".join(command), "file": os.path.normpath(source_file)} 123 | 124 | 125 | def read_directory(line): 126 | tokens = tokenize_command(line) 127 | if tokens[0] == "cd": 128 | return tokens[1] 129 | else: 130 | return "" 131 | 132 | def convert(input_file, output_file, is_excluded=None): 133 | json_input_mode = input_file.endswith('.json') 134 | 135 | find_compileC = re.compile("CompileC").search 136 | 137 | find_processPCH = re.compile("ProcessPCH").search 138 | 139 | find_clang_command = re.compile("(" + "|".join(SUPPORTED_COMPILERS) + ") .* -c .* -o ").search 140 | 141 | if is_excluded is None: 142 | is_excluded = (lambda x: False) 143 | 144 | with open(output_file, "w") as output: 145 | with open(input_file, "r") as input: 146 | if json_input_mode: 147 | lines = itertools.chain(*(json.loads(line).get('command', '').encode("utf8").splitlines(True) for line in input)) 148 | else: 149 | lines = input 150 | try: 151 | output.write("[") 152 | cr = "\n" 153 | while 1: 154 | log_line = lines.next() 155 | compilation_section_re = find_compileC(log_line) 156 | if compilation_section_re: 157 | directory = read_directory(lines.next()) 158 | if is_excluded(directory): 159 | continue 160 | while 1: 161 | log_line = lines.next() 162 | if not find_clang_command(log_line): 163 | continue 164 | output_record = process_clang_command(log_line, directory) 165 | output.write(cr) 166 | output.write(json.dumps(output_record, indent=2)) 167 | cr = ",\n" 168 | break 169 | continue 170 | compilation_section_re = find_processPCH(log_line) 171 | if compilation_section_re: 172 | directory = read_directory(lines.next()) 173 | if is_excluded(directory): 174 | continue 175 | while 1: 176 | log_line = lines.next() 177 | if not find_clang_command(log_line): 178 | continue 179 | register_source_for_pth_file(log_line, directory) 180 | break 181 | continue 182 | except StopIteration: 183 | output.write("\n]\n"); 184 | 185 | def main(): 186 | arg_parser = argparse.ArgumentParser(description='Converts xcodebuild logs or xctool-json-reporter logs to compile_commands.json') 187 | arg_parser.add_argument("-e", "-exclude", dest="exclusion", help="Directory exclusion pattern (regular expression)") 188 | arg_parser.add_argument("-o", "-output", dest="output_file", help="Output json file (default: ./%s)" % JSON_COMPILATION_DATABASE) 189 | arg_parser.add_argument(metavar="FILE", nargs='?', dest="input_file", help="Input log file (default: ./%s)" % DEFAULT_INPUT_FILE) 190 | 191 | args = arg_parser.parse_args() 192 | 193 | if args.input_file: 194 | input_file = args.input_file 195 | else: 196 | input_file = DEFAULT_INPUT_FILE 197 | 198 | if args.output_file: 199 | output_file = args.output_file 200 | else: 201 | output_file = JSON_COMPILATION_DATABASE 202 | 203 | if not os.path.isfile(input_file): 204 | print "Error: %s not found." % input_file 205 | exit(1) 206 | 207 | if args.exclusion: 208 | is_excluded = re.compile(args.exclusion).match 209 | else: 210 | is_excluded = None 211 | 212 | convert(input_file, output_file, is_excluded) 213 | 214 | 215 | if __name__ == '__main__': 216 | print "This binary is no longer under maintenance by OCLint team." 217 | print "Please consider using xcpretty (https://github.com/supermarin/xcpretty) instead!" 218 | main() 219 | -------------------------------------------------------------------------------- /test/product-name-with-space: -------------------------------------------------------------------------------- 1 | === CLEAN NATIVE TARGET Product Name With Space OF PROJECT Product Name With Space WITH CONFIGURATION Debug === 2 | Check dependencies 3 | 4 | Clean.Remove clean "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.pth" 5 | builtin-rm -rf "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.pth" 6 | 7 | Clean.Remove clean "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build" 8 | builtin-rm -rf "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build" 9 | 10 | Clean.Remove clean "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app" 11 | builtin-rm -rf "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app" 12 | 13 | 14 | ** CLEAN SUCCEEDED ** 15 | 16 | 17 | === BUILD NATIVE TARGET Product Name With Space OF PROJECT Product Name With Space WITH CONFIGURATION Debug === 18 | Check dependencies 19 | 20 | ProcessInfoPlistFile "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Info.plist" "Product Name With Space/Product Name With Space-Info.plist" 21 | cd "/Users/lqi/Desktop/Product Name With Space" 22 | builtin-infoPlistUtility "Product Name With Space/Product Name With Space-Info.plist" -genpkginfo "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/PkgInfo" -expandbuildsettings -platform macosx -o "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Info.plist" 23 | 24 | ProcessPCH "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.pth" "Product Name With Space/Product Name With Space-Prefix.pch" normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 25 | cd "/Users/lqi/Desktop/Product Name With Space" 26 | setenv LANG en_US.US-ASCII 27 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-generated-files.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-own-target-headers.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-all-target-headers.hmap" -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-project-headers.hmap" -I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources/x86_64" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources" -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug --serialize-diagnostics "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.dia" -c "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/Product Name With Space-Prefix.pch" -o "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.pth" -MMD -MT dependencies -MF "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch.d" 28 | 29 | CompileC "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.o" "Product Name With Space/main.m" normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 30 | cd "/Users/lqi/Desktop/Product Name With Space" 31 | setenv LANG en_US.US-ASCII 32 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-generated-files.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-own-target-headers.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-all-target-headers.hmap" -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-project-headers.hmap" -I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources/x86_64" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources" -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -include "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch" -MMD -MT dependencies -MF "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.d" --serialize-diagnostics "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.dia" -c "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/main.m" -o "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.o" 33 | /Users/lqi/Desktop/Product Name With Space/Product Name With Space/main.m:13:9: warning: unused variable 'i' [-Wunused-variable] 34 | int i; 35 | ^ 36 | 1 warning generated. 37 | 38 | CompileC "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.o" "Product Name With Space/TSFAppDelegate.m" normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 39 | cd "/Users/lqi/Desktop/Product Name With Space" 40 | setenv LANG en_US.US-ASCII 41 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-generated-files.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-own-target-headers.hmap" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-all-target-headers.hmap" -iquote "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-project-headers.hmap" -I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources/x86_64" "-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources" -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -include "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/PrecompiledHeaders/Product Name With Space-Prefix-fhjbufqhhivppyblyuegrszluspu/Product Name With Space-Prefix.pch" -MMD -MT dependencies -MF "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.d" --serialize-diagnostics "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.dia" -c "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/TSFAppDelegate.m" -o "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.o" 42 | 43 | Ld "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/MacOS/Product Name With Space" normal x86_64 44 | cd "/Users/lqi/Desktop/Product Name With Space" 45 | setenv MACOSX_DEPLOYMENT_TARGET 10.8 46 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -filelist "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/Product Name With Space.LinkFileList" -mmacosx-version-min=10.8 -fobjc-arc -fobjc-link-runtime -framework Cocoa -o "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/MacOS/Product Name With Space" 47 | 48 | CompileXIB "Product Name With Space/en.lproj/MainMenu.xib" 49 | cd "/Users/lqi/Desktop/Product Name With Space" 50 | setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/.. 51 | /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Resources/en.lproj/MainMenu.nib" "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/en.lproj/MainMenu.xib" --sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk 52 | 53 | CpResource "Product Name With Space/en.lproj/Credits.rtf" "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Resources/en.lproj/Credits.rtf" 54 | cd "/Users/lqi/Desktop/Product Name With Space" 55 | builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/en.lproj/Credits.rtf" "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Resources/en.lproj" 56 | 57 | CopyStringsFile "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Resources/en.lproj/InfoPlist.strings" "Product Name With Space/en.lproj/InfoPlist.strings" 58 | cd "/Users/lqi/Desktop/Product Name With Space" 59 | builtin-copyStrings --validate --inputencoding utf-8 --outputencoding UTF-16 --outdir "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app/Contents/Resources/en.lproj" -- "Product Name With Space/en.lproj/InfoPlist.strings" 60 | 61 | Touch "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app" 62 | cd "/Users/lqi/Desktop/Product Name With Space" 63 | /usr/bin/touch -c "/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/Product Name With Space.app" 64 | 65 | 66 | ** BUILD SUCCEEDED ** 67 | 68 | -------------------------------------------------------------------------------- /test/product-name-with-space.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "directory": "/Users/lqi/Desktop/Product Name With Space", 4 | "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-generated-files.hmap\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-own-target-headers.hmap\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-all-target-headers.hmap\" -iquote \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-project-headers.hmap\" -I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources/x86_64\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources\" -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -include \"/Users/lqi/Desktop/Product Name With Space/Product Name With Space/Product Name With Space-Prefix.pch\" -MMD -MT dependencies -MF \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.d\" --serialize-diagnostics \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.dia\" -c \"/Users/lqi/Desktop/Product Name With Space/Product Name With Space/main.m\" -o \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/main.o\"", 5 | "file": "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/main.m" 6 | }, 7 | { 8 | "directory": "/Users/lqi/Desktop/Product Name With Space", 9 | "command": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -Wno-sign-conversion -iquote \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-generated-files.hmap\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-own-target-headers.hmap\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-all-target-headers.hmap\" -iquote \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Product Name With Space-project-headers.hmap\" -I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources/x86_64\" \"-I/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/DerivedSources\" -F/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Products/Debug -include \"/Users/lqi/Desktop/Product Name With Space/Product Name With Space/Product Name With Space-Prefix.pch\" -MMD -MT dependencies -MF \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.d\" --serialize-diagnostics \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.dia\" -c \"/Users/lqi/Desktop/Product Name With Space/Product Name With Space/TSFAppDelegate.m\" -o \"/Users/lqi/Library/Developer/Xcode/DerivedData/Product_Name_With_Space-gtfgwftlcbioudftvafbvusljeom/Build/Intermediates/Product Name With Space.build/Debug/Product Name With Space.build/Objects-normal/x86_64/TSFAppDelegate.o\"", 10 | "file": "/Users/lqi/Desktop/Product Name With Space/Product Name With Space/TSFAppDelegate.m" 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /test/testAll.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh -e 2 | 3 | function test { 4 | ../oclint-xcodebuild $1 5 | diff $1.json compile_commands.json 6 | } 7 | 8 | test xcode-5.0-5A11314m-pchpch 9 | test full-project-1 10 | test full-project-2 11 | test product-name-with-space 12 | -------------------------------------------------------------------------------- /test/xcode-5.0-5A11314m-pchpch: -------------------------------------------------------------------------------- 1 | === BUILD NATIVE TARGET TestBot OF PROJECT TestBot WITH THE DEFAULT CONFIGURATION (Release) === 2 | 3 | Check dependencies 4 | 5 | ProcessPCH /var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/SharedPrecompiledHeaders/TestBot-Prefix-cffygwjdoayaqlclsovhxybmhxea/TestBot-Prefix.pch.pch TestBot/TestBot-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 6 | cd /Users/lqi/Desktop/TestBot 7 | setenv LANG en_US.US-ASCII 8 | /Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/ModuleCache -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-generated-files.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-own-target-headers.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-all-target-headers.hmap -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-project-headers.hmap -I/Users/lqi/Desktop/TestBot/build/Release/include -I/Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources/x86_64 -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources -F/Users/lqi/Desktop/TestBot/build/Release --serialize-diagnostics /var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/SharedPrecompiledHeaders/TestBot-Prefix-cffygwjdoayaqlclsovhxybmhxea/TestBot-Prefix.pch.dia -MMD -MT dependencies -MF /var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/SharedPrecompiledHeaders/TestBot-Prefix-cffygwjdoayaqlclsovhxybmhxea/TestBot-Prefix.pch.d -c /Users/lqi/Desktop/TestBot/TestBot/TestBot-Prefix.pch -o /var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/SharedPrecompiledHeaders/TestBot-Prefix-cffygwjdoayaqlclsovhxybmhxea/TestBot-Prefix.pch.pch 9 | 10 | CompileC build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.o TestBot/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 11 | cd /Users/lqi/Desktop/TestBot 12 | setenv LANG en_US.US-ASCII 13 | /Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/ModuleCache -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-generated-files.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-own-target-headers.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-all-target-headers.hmap -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-project-headers.hmap -I/Users/lqi/Desktop/TestBot/build/Release/include -I/Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources/x86_64 -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources -F/Users/lqi/Desktop/TestBot/build/Release -include /var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/SharedPrecompiledHeaders/TestBot-Prefix-cffygwjdoayaqlclsovhxybmhxea/TestBot-Prefix.pch -MMD -MT dependencies -MF /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.dia -c /Users/lqi/Desktop/TestBot/TestBot/main.m -o /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.o 14 | 15 | Ld build/Release/TestBot normal x86_64 16 | cd /Users/lqi/Desktop/TestBot 17 | setenv MACOSX_DEPLOYMENT_TARGET 10.9 18 | /Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/lqi/Desktop/TestBot/build/Release -F/Users/lqi/Desktop/TestBot/build/Release -filelist /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/TestBot.LinkFileList -mmacosx-version-min=10.9 -fobjc-arc -fobjc-link-runtime -framework Foundation -Xlinker -dependency_info -Xlinker /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/TestBot_dependency_info.dat -o /Users/lqi/Desktop/TestBot/build/Release/TestBot 19 | 20 | GenerateDSYMFile build/Release/TestBot.dSYM build/Release/TestBot 21 | cd /Users/lqi/Desktop/TestBot 22 | /Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/lqi/Desktop/TestBot/build/Release/TestBot -o /Users/lqi/Desktop/TestBot/build/Release/TestBot.dSYM 23 | 24 | ** BUILD SUCCEEDED ** 25 | 26 | -------------------------------------------------------------------------------- /test/xcode-5.0-5A11314m-pchpch.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "directory": "/Users/lqi/Desktop/TestBot", 4 | "command": "/Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/var/folders/s1/1_9k4vfj2vg62rhjz7mhmlk40000gn/C/com.apple.DeveloperTools/5.0-5A11314m/Xcode/5.0-5A11314m/Xcode/ModuleCache -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-generated-files.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-own-target-headers.hmap -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-all-target-headers.hmap -iquote /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/TestBot-project-headers.hmap -I/Users/lqi/Desktop/TestBot/build/Release/include -I/Applications/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources/x86_64 -I/Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/DerivedSources -F/Users/lqi/Desktop/TestBot/build/Release -include /Users/lqi/Desktop/TestBot/TestBot/TestBot-Prefix.pch -MMD -MT dependencies -MF /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.dia -c /Users/lqi/Desktop/TestBot/TestBot/main.m -o /Users/lqi/Desktop/TestBot/build/TestBot.build/Release/TestBot.build/Objects-normal/x86_64/main.o", 5 | "file": "/Users/lqi/Desktop/TestBot/TestBot/main.m" 6 | } 7 | ] 8 | --------------------------------------------------------------------------------