gpt4 book ai didi

xcode - 什么导致 clang : error: unsupported option '--serialize-diagnostics' with xcode

转载 作者:行者123 更新时间:2023-12-03 17:55:54 26 4
gpt4 key购买 nike

我正在尝试使用 Xcode 构建执行 clang 分析器。这适用于另一个项目,但现在我收到了下面描述的错误。有没有人看到这个?

我的命令行:

/Users/builder/Tools/checker-267/scan-build -k -v -o scan_output xcodebuild -scheme MyScheme -configuration Release -sdk iphoneos CONFIGURATION_BUILD_DIR=build 'CODE_SIGN_IDENTITY=iPhone Distribution:'

I GET (THOUGH THIS WARNING ALSO APPEARED WITH A PREVIOUS PROJECT THAT COMPLETED LINTING SUCCESSFULLY):

Warning: Couldn't discover the 'ccc-analyzer' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.

AND THEN GET THE unsupported option '--serialize-diagnostics' ERROR WHICH SEEMS TO BE THE PROBLEM:

Details: Unable to get message category info for tool '/Users/builder/Tools/checker-267/libexec/ccc-analyzer'. Reason: Can't exec "clang": No such file or directory at /Users/builder/Tools/checker-267/libexec/ccc-analyzer line 428.

Object: Method:
-messageCategoryInfoForExecutablePath: Thread: {name = (null), num = 5} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide. clang: error: unsupported option '--serialize-diagnostics' clang: error: no such file or directory: '/Users/builder/Library/Developer/Xcode/DerivedData/Civitas-cjaysrhpylwnfoaagvkzrnpvmkhq/Build/Intermediates/HAClient.build/Release-iphoneos/HAClient.build/Objects-normal/armv7/HAClient.dia' Command /Users/builder/Tools/checker-267/libexec/ccc-analyzer failed with exit code 1



感谢您的建议,但它仍然失败。我得到:

检查依赖项

2012-07-20 13:55:23.195 xcodebuild[25585:352f] 错误:错误域=NSPOSIXErrorDomain 代码=2“从 shell 命令返回的非零退出代码 255:/Users/builder/Tools/checker-267/libexec/ccc-analyzer -v -E -dM -arch i386 -isysroot/applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -x objective-c -c/dev/null 2>&1"UserInfo=0x4001c0b40 {NSLocalizedDescription=从 shell 命令返回的非零退出代码 255:/Users/builder/Tools/checker-267/libexec/ccc-analyzer -v -E -dM -arch i386 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -x objective-c -c/dev/null 2>&1, NSLocalizedFailureReason=没有那个文件或目录}
2012-07-20 13:55:23.197 xcodebuild[25585:352f] 警告:无法发现“ccc-analyzer”编译器的内置搜索路径和语言方言“objective-c”的预处理器定义。
编译器:/Users/builder/Tools/checker-267/libexec/ccc-analyzer
原因:/Users/builder/Tools/checker-267/libexec/ccc-analyzer -v -E -dM -arch i386 -isysroot/applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -x Objective-c -c/dev/null 2>&1

最佳答案

它似乎是由编译 arm ( -sdk iphoneos ) 引起的。将 sdk 更改为 -sdk iphonesimulator一切都会好的。

关于xcode - 什么导致 clang : error: unsupported option '--serialize-diagnostics' with xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11544819/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com