克隆Xcode 4错误:invalide选项nodistribute

gad*_*ssh 2 static-analysis clang xcode4

我一直试图让clang的分析工具正常工作,但我不知道如何在运行它时克服一个特定的错误.我已经安装了X-Code 4.0和iOS 5,我得到的输出是:


生成类依赖图.

启动/Users//Desktop/HomeWork2/tools/AnalysisTool.app/Contents/Resources/llvm/utils/scan-build with arguments :(

"-o",
"/Users/<homedir>/Development/myApp/Static analysis/results",
"-v",
"--status-bugs",
"-checker-cfref",
"-warn-dead-stores",
"-warn-objc-methodsigs",
"-warn-objc-missing-dealloc",
"-warn-objc-unused-ivars",
"-analysistool-checker-access-control",
"-analysistool-checker-coersions",
"-analysistool-checker-cyclomatic-complexity",
"-analysistool-checker-conditional-logical-complexity",
"-analysistool-checker-conditional-nesting-depth",
"-analysistool-checker-loop-nesting-depth",
"-analysistool-checker-dealloc-safety",
"-analysistool-checker-declaration-conventions",
"-analysistool-checker-discouraged-method-calls",
"-analysistool-checker-error-handling",
"-analysistool-checker-extra-parentheses",
"-analysistool-checker-finalize",
"-analysistool-checker-format-strings",
"-analysistool-checker-kvo",
"-analysistool-checker-memory-management",
"-analysistool-checker-naming-conventions",
"-analysistool-checker-shadow",
"-analysistool-checker-unused-ivars",
"--use-cc=/Developer/usr/bin/llvm-gcc-4.2",
"--use-c++=/Developer/usr/bin/llvm-g++-4.2",
"-generate-class-dependency-graph",
xcodebuild,
"CONFIGURATION_BUILD_DIR=/Users/<homedir>/Development/myApp/Static analysis/build",
"CONFIGURATION_TEMP_DIR=/Users/<homedir>/Development/myApp/Static analysis/build",
"-configuration",
Debug,
clean,
build
Run Code Online (Sandbox Code Playgroud)

).

scan-build:将此运行的报告发送到'/ Users // Development/AMMO_SVN_Projects/MobXpo/branches/MobXpo_v12/Static analysis/results/2011-06-30-8'.

scan-build:在'/Users//Desktop/SWEN_646/HW2/tools/AnalysisTool.app/Contents/Resources/llvm/utils/libexec'中找不到'clang-cc'可执行文件.

scan-build:使用路径中的'clang-cc'.

xcodebuild:错误:无效选项'-nodistribute'

用法:xcodebuild [-project] [[-target] ... | -alltargets] [-configuration] [-arch] ... [-sdk [|]] [=] ... [] ... xcodebuild - workspace -scheme [-configuration] [-arch] ... [-sdk [|]] [=] ... [] ... xcodebuild -version [-sdk [|] []] xcodebuild -list [[ - project] | [-workspace]] xcodebuild -showsdks

选项:

-usage                print full usage
-verbose              provide additional status output
-project NAME         build the project NAME
-target NAME          build the target NAME
-alltargets           build all targets
-workspace NAME       build the workspace NAME
-scheme NAME          build the scheme NAME
-configuration NAME   use the build configuration NAME for building each target
-xcconfig PATH        apply the build settings defined in the file at PATH as overrides
-arch ARCH            build each target for the architecture ARCH; this will override architectures defined in the project
-sdk SDK              use SDK as the name or path of the base SDK when building the project
-parallelizeTargets   build independent targets in parallel
-jobs NUMBER          specify the maximum number of concurrent build operations
-showsdks             display a compact list of the installed SDKs
-list                 lists the targets and configurations in a project, or the schemes in a workspace
-find BINARY          display the full path to BINARY in the provided SDK
-version              display the version of Xcode; with -sdk will display info about one or all installed SDKs
Run Code Online (Sandbox Code Playgroud)

我研究过互联网,但我找不到任何可以帮助解决我的具体问题.我认为我需要做的是编辑clang工具不包含"nodistribute"选项,但我不确定是否有其他方法或在哪里获取源代码.在此先感谢您的帮助.

gad*_*ssh 5

在经过大量寻找答案之后我找到了解决方法,我决定看看是否可以修改包含该-nodistribute选项的代码行.所以我使用grep在.app包中找到代码行,然后在vi中打开它.我在线和宾果游戏中添加了评论#,并参加了比赛.

相对于应用程序包根目录的文件位于: ./Resources/llvm/utils/scan-build