{ "id": "103543", "key": "TIMOB-11598", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14622", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23 JS", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14980", "description": "2013 Sprint 02 JS", "name": "2013 Sprint 02 JS", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-23T20:00:08.000+0000", "created": "2012-10-17T16:22:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.0.0beta2", "build", "ios", "node", "triage", "xcode" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-21T20:43:02.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "When i generate a titanium mobile project and try to run it it wont build.\r\nIt tells me that it cant find \"node\"\r\nIf i change the prebuild command from \r\n{code}\r\nnode \"/usr/local/bin/titanium\" build --platform iphone --sdk 3.1.0 --no-prompt --no-banner --xcode\r\nexit $?\r\n{code}\r\nto\r\n{code}\r\n/usr/local/bin/node \"/usr/local/bin/titanium\" build --platform iphone --sdk 3.1.0 --no-prompt --no-banner --xcode\r\nexit $?\r\n{code}\r\nThen it works.\r\n\r\nLooking at log. In the xcode build process, PATH does not contain /usr/local/bin\r\n", "attachment": [], "flagged": false, "summary": "CLI: iOS: generated xcode project cannot find \"node\"", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 3.1.0 master e9d16eb64ae8a46cbd5a9004615d77fb236e7491\r\nios sdk 6.0\r\n", "comment": { "comments": [ { "id": "226654", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3391\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3392", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-11-08T00:50:27.000+0000", "updated": "2012-11-08T00:50:27.000+0000" }, { "id": "235515", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "i found out today that this fix is not enough.\r\ni found myself in sitations where:\r\nthis.cli.argv.$0 = \"node\"\r\nthis.cli.argv.$0 - \"/usr/local/bin/node\"\r\n\r\nSo i had to fix it again\r\nhttps://github.com/Akylas/titanium_mobile/commit/6eb5588b18287db5a52322efc4cb9df5301c9dfe", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-01-23T18:08:27.000+0000", "updated": "2013-01-23T18:08:27.000+0000" }, { "id": "235535", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Martin, I see what you're saying. No prob, I'll get this fixed in a jiffy.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-23T18:59:05.000+0000", "updated": "2013-01-23T18:59:05.000+0000" }, { "id": "235538", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3767\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3768\n\nComparison of code change:\n\nBefore only works when this.cli.argv.$0 is \"node /usr/local/bin/titanium\".\n\n{code}\n> 'node /usr/local/bin/titanium'.replace(/^node /, '')\n'/usr/local/bin/titanium'\n{code}\n\nIf this.cli.argv.$0 has a full path to node, \"node\" is not stripped:\n\n{code}\n> '/usr/local/bin/node /usr/local/bin/titanium'.replace(/^node /, '')\n'/usr/local/bin/node /usr/local/bin/titanium'\n{code}\n\nAfter the fix, both work perfectly:\n\n{code}\n> 'node /usr/local/bin/titanium'.replace(/^(.+\\/)*node /, '')\n'/usr/local/bin/titanium'\n> '/usr/local/bin/node /usr/local/bin/titanium'.replace(/^(.+\\/)*node /, '')\n'/usr/local/bin/titanium'\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-23T19:05:39.000+0000", "updated": "2013-01-23T19:05:39.000+0000" }, { "id": "235541", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "@chris: that's it. thanks", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-01-23T19:08:02.000+0000", "updated": "2013-01-23T19:08:02.000+0000" }, { "id": "414382", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:43:02.000+0000", "updated": "2017-03-21T20:43:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }