{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2938","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2938/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2938/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2938/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2938","id":115175001,"number":2938,"title":"make xnode fails with AttributeError: 'PBXAggregateTarget' object has no attribute 'FrameworksPhase'","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T23:37:14Z","updated_at":"2015-11-05T10:56:04Z","closed_at":null,"body":"I'm using node v5.0.0.\r\n\r\n```\r\n~/Development/mapbox-gl-native $ make xnode\r\nnode-pre-gyp info it worked if it ends with ok\r\nnode-pre-gyp info using node-pre-gyp@0.6.14\r\nnode-pre-gyp info using node@5.0.0 | darwin | x64\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@0.12.1\r\ngyp info using node@5.0.0 | darwin | x64\r\n(node) child_process: options.customFds option is deprecated. Use options.stdio instead.\r\ngyp info spawn python\r\ngyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-Dhost=osx',\r\ngyp info spawn args   '-Iconfig/osx-x86_64.gypi',\r\ngyp info spawn args   '-Dplatform_lib=osx',\r\ngyp info spawn args   '-Dhttp_lib=none',\r\ngyp info spawn args   '-Dasset_lib=none',\r\ngyp info spawn args   '-Dcache_lib=none',\r\ngyp info spawn args   '-Dheadless_lib=cgl',\r\ngyp info spawn args   '-Dtest=1',\r\ngyp info spawn args   '-Drender=1',\r\ngyp info spawn args   '-Dcxx_host=',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '-Goutput_dir=.',\r\ngyp info spawn args   '--generator-output=./build/osx-x86_64',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'xcode',\r\ngyp info spawn args   '-Dlibuv_cflags=',\r\ngyp info spawn args   '-Dlibuv_ldflags=',\r\ngyp info spawn args   '-Dlibuv_static_libs=',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/john/Development/mapbox-gl-native/build/config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/john/.node-gyp/5.0.0/common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=/Users/john/.node-gyp/5.0.0',\r\ngyp info spawn args   '-Dmodule_root_dir=/Users/john/Development/mapbox-gl-native',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py\", line 18, in <module>\r\n    sys.exit(gyp.script_main())\r\n  File \"/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 534, in script_main\r\n    return main(sys.argv[1:])\r\n  File \"/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 527, in main\r\n    return gyp_main(args)\r\n  File \"/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py\", line 512, in gyp_main\r\n    generator.GenerateOutput(flat_list, targets, data, params)\r\n  File \"/usr/local/lib/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py\", line 1177, in GenerateOutput\r\n    xct.FrameworksPhase().AddFile(library)\r\nAttributeError: 'PBXAggregateTarget' object has no attribute 'FrameworksPhase'\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:337:16)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Darwin 15.0.0\r\ngyp ERR! command \"/usr/local/Cellar/node/5.0.0/bin/node\" \"/usr/local/bin/node-gyp\" \"configure\" \"--clang\" \"--depth=.=-Goutput_dir=.\" \"--generator-output=./build/osx-x86_64=-f\" \"--module=/Users/john/Development/mapbox-gl-native/lib/mapbox-gl-native.node\" \"--module_name=mapbox-gl-native\" \"--module_path=/Users/john/Development/mapbox-gl-native/lib\" \"--\" \"-Dhost=osx\" \"-Iconfig/osx-x86_64.gypi\" \"-Dplatform_lib=osx\" \"-Dhttp_lib=none\" \"-Dasset_lib=none\" \"-Dcache_lib=none\" \"-Dheadless_lib=cgl\" \"-Dtest=1\" \"-Drender=1\" \"-Dcxx_host=\" \"--depth=.\" \"-Goutput_dir=.\" \"--generator-output=./build/osx-x86_64\" \"-f\" \"xcode\" \"-Dlibuv_cflags=\" \"-Dlibuv_ldflags=\" \"-Dlibuv_static_libs=\"\r\ngyp ERR! cwd /Users/john/Development/mapbox-gl-native\r\ngyp ERR! node -v v5.0.0\r\ngyp ERR! node-gyp -v v0.12.1\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! configure error \r\nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp configure --clang --depth=.=-Goutput_dir=. --generator-output=./build/osx-x86_64=-f --module=/Users/john/Development/mapbox-gl-native/lib/mapbox-gl-native.node --module_name=mapbox-gl-native --module_path=/Users/john/Development/mapbox-gl-native/lib -- -Dhost=osx -Iconfig/osx-x86_64.gypi -Dplatform_lib=osx -Dhttp_lib=none -Dasset_lib=none -Dcache_lib=none -Dheadless_lib=cgl -Dtest=1 -Drender=1 -Dcxx_host= --depth=. -Goutput_dir=. --generator-output=./build/osx-x86_64 -f xcode -Dlibuv_cflags= -Dlibuv_ldflags= -Dlibuv_static_libs=' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/john/Development/mapbox-gl-native/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at emitTwo (events.js:87:13)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:818:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\nnode-pre-gyp ERR! System Darwin 15.0.0\r\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/5.0.0/bin/node\" \"/Users/john/Development/mapbox-gl-native/node_modules/.bin/node-pre-gyp\" \"configure\" \"--clang\" \"--\" \"-Dhost=osx\" \"-Iconfig/osx-x86_64.gypi\" \"-Dplatform_lib=osx\" \"-Dhttp_lib=none\" \"-Dasset_lib=none\" \"-Dcache_lib=none\" \"-Dheadless_lib=cgl\" \"-Dtest=1\" \"-Drender=1\" \"-Dcxx_host=\" \"--depth=.\" \"-Goutput_dir=.\" \"--generator-output=./build/osx-x86_64\" \"-f\" \"xcode\" \"-Dlibuv_cflags=\" \"-Dlibuv_ldflags=\" \"-Dlibuv_static_libs=\"\r\nnode-pre-gyp ERR! cwd /Users/john/Development/mapbox-gl-native\r\nnode-pre-gyp ERR! node -v v5.0.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.14\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute 'node-gyp configure --clang --depth=.=-Goutput_dir=. --generator-output=./build/osx-x86_64=-f --module=/Users/john/Development/mapbox-gl-native/lib/mapbox-gl-native.node --module_name=mapbox-gl-native --module_path=/Users/john/Development/mapbox-gl-native/lib -- -Dhost=osx -Iconfig/osx-x86_64.gypi -Dplatform_lib=osx -Dhttp_lib=none -Dasset_lib=none -Dcache_lib=none -Dheadless_lib=cgl -Dtest=1 -Drender=1 -Dcxx_host= --depth=. -Goutput_dir=. --generator-output=./build/osx-x86_64 -f xcode -Dlibuv_cflags= -Dlibuv_ldflags= -Dlibuv_static_libs=' (1)\r\nmake[1]: *** [node/xproj] Error 1\r\nmake: *** [Xcode/node] Error 2\r\n```\r\n\r\n@kkaefer @mikemorris "},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/154029715","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2938#issuecomment-154029715","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2938","id":154029715,"user":{"login":"kkaefer","id":52399,"avatar_url":"https://avatars.githubusercontent.com/u/52399?v=3","gravatar_id":"","url":"https://api.github.com/users/kkaefer","html_url":"https://github.com/kkaefer","followers_url":"https://api.github.com/users/kkaefer/followers","following_url":"https://api.github.com/users/kkaefer/following{/other_user}","gists_url":"https://api.github.com/users/kkaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/kkaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkaefer/subscriptions","organizations_url":"https://api.github.com/users/kkaefer/orgs","repos_url":"https://api.github.com/users/kkaefer/repos","events_url":"https://api.github.com/users/kkaefer/events{/privacy}","received_events_url":"https://api.github.com/users/kkaefer/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T10:56:04Z","updated_at":"2015-11-05T10:56:04Z","body":"> gyp info using node-gyp@0.12.1\r\n\r\nthat's a very old version of node-gyp. The current one is 3.0.3. Can you try upgrading your version of node-gyp?\r\n\r\nGenerating the Xcode project file works for me with node v5.0.0. Here are my versions:\r\n\r\n```\r\nnode-pre-gyp info using node-pre-gyp@0.6.10\r\ngyp info using node-gyp@3.0.3\r\ngyp info using node@5.0.0 | darwin | x64\r\n```"}}