Skip to content

Building dart on Mac OS X Lion with xcode 4 #18

Closed
@DartBot

Description

@DartBot

This issue was originally filed by bats...@gmail.com


What steps will reproduce the problem?

  1. checkout source code
  2. 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',
    
  •            'macosx10.6',
    
                     '-project',
                     project_file,
                     '-target',

Full instruction for workaround on Lion:
http://batsuev.com/2011/10/building-google-dart-on-os-x-lion-with-xcode-4/

Metadata

Metadata

Assignees

Labels

area-infrastructureUse area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions