为什么Xcode 4不创建任何产品? [英] Why doesn't Xcode 4 create any products?

查看:69
本文介绍了为什么Xcode 4不创建任何产品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不管构建配置如何,构建我的iPad应用程序实际上都不会输出.app文件.它确实可以在iPad模拟器和设备上运行,但是当我点击构建"或构建并运行"时,二进制文件会以红色显示在产品"下,并且不会在构建设置中指定的构建"文件夹中创建.

Regardless of build configuration, building my iPad app does not actually output a .app file. It does run in the iPad simulator and on a device, but when I hit build or build and run, the binary appears under Products in red and is not created in the "build" folder as designated in build settings.

有什么想法吗?

推荐答案

Xcode 4现在将其生成产品和其他中介/临时文件/索引放在派生数据目录中,而不是与您的目录混合在一起的"build"目录中产品文件.这样做是为了处理新的工作区,从而使您可以在不同的工作区中干净构建不同项目的构建,而不会互相污染.

Xcode 4 places its build products and other intermediaries/temporary files/indexes in a derived data directory now instead of a "build" directory that is mixed in with your product files. It does this to deal with the new workspaces and also so that you can have clean builds of different projects in different workspaces without contaminating each other.

如果原始模板较旧,则所构建的产品可能是相对于源目录的,而不是相对于所构建的产品目录的,这就是为什么它显示为红色.默认情况下,您的派生数据目录将位于〜/Library/Developer/Xcode/DerivedData下.要查看当前工作空间/项目在何处放置这些文件,可以文件->工作空间设置... ,然后查看构建位置.

If your original template was old, your built product is probably relative to your source directory instead of relative to your built products directory, which is why it's showing up red. By default, your derived data directory will be under ~/Library/Developer/Xcode/DerivedData. To see where your current workspace/project is placing these files, you can File->Workspace Settings... and take a look at the Build Location.

这篇关于为什么Xcode 4不创建任何产品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆