{ "id": "119120", "key": "AC-2296", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-17T16:25:18.000+0000", "created": "2013-08-27T17:24:35.000+0000", "labels": [ "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:41:18.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": [], "attachment": [], "flagged": false, "summary": "iOS: Unable to build: TypeError: Arguments to path.join must be strings", "creator": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Titanium Studio 3.1.2", "comment": { "comments": [ { "id": "268459", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In the title you have: Titanium + SDK 3.1.0\n\nIs there a reason you need to specifically build with 3.1.0? Can you not use Ti SDK 3.1.2 GA?\n\nIf you run this in Terminal:\n\n{code}titanium -v{code}\n\nYou'll see the CLI version installed. Also, if you run:\n\n{code}node -v{code}\n\nYou'll see the node.js version installed.\n\nI'm not 100% certain, but the latest CLI uses node.js 0.10.x, which is likely incompatible with older Titanium SDKs.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-27T21:58:40.000+0000", "updated": "2013-08-27T21:58:40.000+0000" }, { "id": "268547", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "I said I upgraded to the last version, thats why:\n{code}\ntitanium -v\n3.1.2\n\nnode -v\nv0.10.13\n{code}\n\nI have many SKD's installed (all are final not betas) and I found out that all are working except all versions between 3.0.0 - 3.1.0.\nIt's working on 3.1.1, 3.1.2 but I can not move my projects now to this versions.\n\nWhat does it mean that the CLI version is incompatible with older SDK's?!? From now I can ONLY use 3.1.2 ?!? It's like killing all projects done a month ago.", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-08-28T09:12:04.000+0000", "updated": "2013-08-28T09:12:04.000+0000" }, { "id": "268636", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Titanium SDK 3.1.X and newer works with Node.js 0.10. Sounds like the CLI can't find the Android SDK. Please run:\n\n{code}\nti config android.sdkPath /path/to/android-sdk\n{code}\n\nThen try building your app again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-28T17:24:13.000+0000", "updated": "2013-08-28T17:24:13.000+0000" }, { "id": "268799", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Chris Barber, you said: \"CLI can't find the Android SDK\" ?!?\nI said it's NOT working for iOS builds. For Android it works fine.", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-08-29T05:59:29.000+0000", "updated": "2013-08-29T05:59:29.000+0000" }, { "id": "268800", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~mry] Based on the error output, it clearly states the problem is in /Users/Yoram/Library/Application Support/Titanium/mobilesdk/osx/3.1.0.GA/android/cli/commands/_build.js which is the Android build. So, either make sure the Android SDK path is defined correctly or please submit an error message that is an actual iOS build error.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-29T06:06:32.000+0000", "updated": "2013-08-29T06:06:32.000+0000" }, { "id": "268806", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Well, I saw that \"android\" string in the error result, but still, I'm just doing a build target for iPhone Emulator.\r\n... and why the old version (before 3.0.0) still works?\r\n\r\nBtw, before I also updated the Android SDK, then it's stop compiling for 3.1.0, but using the next reference commands - it's working now for Android as well:\r\n\r\n{code}\r\n\r\ncd /Applications/android-sdk-macosx/platform-tools/\r\n\r\nln -s /Applications/android-sdk-macosx/build-tools/17.0.0/aapt aapt\r\nln -s /Applications/android-sdk-macosx/build-tools/17.0.0/dx dx\r\n\r\n{code}\r\n\r\nI didn't check the iOS build before fixing the Android issue so I don't know if it affects.\r\nI also don't understand how come a build of iOS affects Android? It's not a build per my target selection?\r\n\r\n\r\nIf I run this: *ti config android.sdkPath /path/to/android-sdk*, will it affect builds for 3.1.2 ?", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-08-29T07:49:34.000+0000", "updated": "2013-08-29T07:50:28.000+0000" }, { "id": "268894", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~mry] It should be safe. If you're at all concerned, make a backup of ~/.titanium/config.json prior to running the \"ti config android.sdkPath /path/to/android-sdk\".", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-29T17:44:43.000+0000", "updated": "2013-08-29T17:44:43.000+0000" }, { "id": "269194", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Chris, I ran this - \"ti config android.sdkPath /path/to/android-sdk\" and saw the change in config.json, but it doesn't help. I get same error :-(\nAny other idea?\n\nI might try to make changes for 3.1.2 but there might be users with same problem and would like old SDK's to run as well. ", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-01T08:25:34.000+0000", "updated": "2013-09-01T08:25:34.000+0000" }, { "id": "269195", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~mry] You should have changed /path/to/android-sdk to whatever the path is on your computer to the Android SDK.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-09-01T08:49:06.000+0000", "updated": "2013-09-01T08:49:06.000+0000" }, { "id": "269196", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "If I only knew how to do that. It's something related to 3.0.0-3.1.0 SDK's. Others work fine.", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-01T08:53:39.000+0000", "updated": "2013-09-01T08:53:39.000+0000" }, { "id": "271488", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Following up here. I too am puzzled why the build log shows Android yet you say it's iOS. So, any 2.X SDKs work fine, but 3.X SDKs do not?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T15:44:00.000+0000", "updated": "2013-09-17T15:44:00.000+0000" }, { "id": "271491", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "For iOS: It's working fine for 2.X SDKs and for 3.1.1 + 3.1.2, but not for SDKs between 3.0.0 - 3.1.0.\r\nFor Android: No problem on any versions.\r\n\r\nThe TITLE WAS WRONG! IT IS NOT ANDROID !!! ITS IOS! \r\nGuys, who ever changed this title, I know the log file out says \"android\" issue, but it's happening when building for iOS. Android builds without an error.\r\n", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-17T16:05:03.000+0000", "updated": "2013-09-17T16:06:28.000+0000" }, { "id": "271493", "author": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Btw, I gave up on that, trying to make it work for 3.1.0. I just made some changes and I release (yesterday) the new app version with 3.1.2 SDK.\nBut for other programmers, this issue might be helpful.\n", "updateAuthor": { "name": "mry", "key": "mry", "displayName": "Yoram", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-09-17T16:07:45.000+0000", "updated": "2013-09-17T16:07:45.000+0000" }, { "id": "271496", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mry], okay. It was the only error I was able to discern from the log files. Even if it's building fine for Android, its still important to note the error.\n\nThank you for the report. Since it works fine in 3.1.2+, I'm going to mark the issue as resolved.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T16:23:07.000+0000", "updated": "2013-09-17T16:23:07.000+0000" }, { "id": "271498", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "According to user, this is resolved in SDK 3.1.2+. Marking as resolved.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-17T16:25:18.000+0000", "updated": "2013-09-17T16:25:18.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }