在Mac上构建Dart:“xcodebuild:错误:'dart.xcodeproj'不存在。”

时间:2013-11-21 05:38:24

标签: build compiler-errors dart xcode5

我想我已经完成了我应该构建Dart的所有步骤(事实上至少两次),但我明白了:

$ ./tools/build.py --arch=ia32
xcodebuild -project dart.xcodeproj -target All -configuration DebugIA32 SYMROOT=/Users/eric/lib/dart/dart/xcodebuild
Build settings from command line:
    SYMROOT = /Users/eric/lib/dart/dart/xcodebuild

xcodebuild: error: 'dart.xcodeproj' does not exist.
BUILD FAILED

实际上,我的系统上没有看到dart.xcodeproj。据我所知,我没有做过任何奇怪的事情。有什么想法吗?

编辑:我跑了

$ gclient config http://dart.googlecode.com/svn/branches/bleeding_edge/deps/standalone.deps
$ gclient sync
$ gclient runhooks

似乎所有这些都是必要的。 (我也尝试使用all.deps代替standalone.deps。)

2 个答案:

答案 0 :(得分:0)

你有没有运行gclient sync& gclient runhooks?

这可以生成proj文件。

请参阅https://code.google.com/p/dart/wiki/GettingTheSource

答案 1 :(得分:0)

我最终从this page收集到的问题是,除非dart.xcodeproj设置为GYP_GENERATORS,否则xcode无法构建,例如:

$ export GYP_GENERATORS=xcode
$ gclient runhooks

之后,tools/build.py成功。

或者,它可以使用ninja构建,通过构建

的内容
$ ninja -C out/Debug dart

虽然这对我来说效果不好(我只是猜到了命令行参数)。