Open FrankiezZZ opened 5 years ago
您好,我按照博客的顺序,编译工程后,报了错,能麻烦指点我一下,会是什么问题嘛~万分感激
could not create session: requestError(description: "unknown error while handling message: unableToInitializeCore(errors: [\"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/Default Compiler.xcspec: warning: spec \\':com.apple.compilers.gcc\\' already registered from /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/Default Compiler.xcspec\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'LLVM_LTO\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"LLVM_LTO\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'GCC_WARN_UNINITIALIZED_AUTOS\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"GCC_WARN_UNINITIALIZED_AUTOS\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_CONSTANT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_CONSTANT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_INT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_INT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_BOOL_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_BOOL_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_ENUM_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_ENUM_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_IMPLICIT_SIGN_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_IMPLICIT_SIGN_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'GCC_WARN_64_TO_32_BIT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"GCC_WARN_64_TO_32_BIT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to load \\':com.apple.compilers.llvm.clang.hacked.analyzer\\' (unable to load base spec)\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to load \\':com.apple.compilers.llvm.clang.hacked.compiler\\' (unable to load base spec)\"])")
我也遇到同样的问题,感觉是XCode版本的问题
同一个问题
Xcode -> File --> Project Settings switch New Build System to Legacy Build System
New Build System
Legacy Build System
您好,我按照博客的顺序,编译工程后,报了错,能麻烦指点我一下,会是什么问题嘛~万分感激
could not create session: requestError(description: "unknown error while handling message: unableToInitializeCore(errors: [\"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/Default Compiler.xcspec: warning: spec \\':com.apple.compilers.gcc\\' already registered from /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/Clang LLVM 1.0.xcplugin/Contents/Resources/Default Compiler.xcspec\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'LLVM_LTO\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"LLVM_LTO\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'GCC_WARN_UNINITIALIZED_AUTOS\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"GCC_WARN_UNINITIALIZED_AUTOS\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_CONSTANT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_CONSTANT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_INT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_INT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_BOOL_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_BOOL_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_ENUM_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_ENUM_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'CLANG_WARN_IMPLICIT_SIGN_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"CLANG_WARN_IMPLICIT_SIGN_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to declare macro for option \\'GCC_WARN_64_TO_32_BIT_CONVERSION\\': conflictingMacroDeclarationType(previousType: XCBCore.MacroType.string, name: \\"GCC_WARN_64_TO_32_BIT_CONVERSION\\") (while parsing \\'com.apple.compilers.llvm.clang.hacked\\')\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to load \\':com.apple.compilers.llvm.clang.hacked.analyzer\\' (unable to load base spec)\", \"/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/HackedClang.xcplugin/Contents/Resources/HackedClang.xcspec: error: unable to load \\':com.apple.compilers.llvm.clang.hacked.compiler\\' (unable to load base spec)\"])")