Description
This issue was originally filed by bats...@gmail.com
What steps will reproduce the problem?
- checkout source code
- run tools/build.py
Result:
=== BUILD NATIVE TARGET v8_base OF PROJECT v8 WITH CONFIGURATION Debug_x64 ===
** BUILD FAILED **
The problem is in macosx sdk version. Google Dart needs 10.5 for building, but there are no macosx10.5 sdk in XCode 4 in Lion.
Workaround: specify sdk manually in build.py:
Index: tools/build.py
===================================================================
--- tools/build.py (revision 296)
+++ tools/build.py (working copy)
@@ -106,6 +106,8 @@
if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()):
project_file = 'dart-%s.xcodeproj' % CurrentDirectoryBaseName()
args = ['xcodebuild',
-
'-sdk',
-
'-project',
'macosx10.6',
project_file,
'-target',
Full instruction for workaround on Lion:
http://batsuev.com/2011/10/building-google-dart-on-os-x-lion-with-xcode-4/