Xcode 构建但不创建可执行文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5350481/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:33:34  来源:igfitidea点击:

Xcode build but don't create Executable

xcodemacosbuild

提问by dlewin

I use a previous Xcode 3 project and built it successfully on the Mac SDK 10.6.

我使用以前的 Xcode 3 项目并在 Mac SDK 10.6 上成功构建它。

What I don't understand is that not any executable is generated :

我不明白的是没有生成任何可执行文件:

  • I've look at the scheme and Run is checked,
  • the path to the executable I selected the previous executable for the run and then deleted that old executable to be sure that the new will be built.
  • 我查看了方案并检查了运行,
  • 可执行文件的路径 我为运行选择了以前的可执行文件,然后删除了旧的可执行文件,以确保将构建新的可执行文件。

Strangely, no executable is built.

奇怪的是,没有构建可执行文件。

回答by

Xcode 4 changes the default build location. It's no longer going into $(SRCROOT)/build, but ~/Library/Xcode/DerivedData/...where ...is a project-specific folder. Right-click the executable in Xcode and choose "Show in Finder".

Xcode 4 更改了默认构建位置。它不再进入$(SRCROOT)/build,而是项目特定的文件夹~/Library/Xcode/DerivedData/...在哪里...。右键单击 Xcode 中的可执行文件,然后选择“在 Finder 中显示”。