{ "id": "88415", "key": "TIMOB-8168", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-22T16:24:14.000+0000", "created": "2012-03-21T15:12:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-06T18:15:40.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": "10207", "name": "Tooling" } ], "description": "I just tried this in Studio...it does not appear to matter if I use SDK 1.8 or 2.0. I was unable to find a duplicate issue, but please let me know if there is one.\r\n\r\n# Create a new Mobile Module Project for iOS\r\n# After clicking finish, get the following error message (it does not matter which version of the SDK I am using)\r\n# Nothing is created in the project\r\n\r\n{code}\r\nInternal error: Traceback (most recent call last):\r\nFile \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120321131754/module/iphone/xcode/install.py\", line 18, in \r\nshutil.copytree(os.path.join(template_dir,'Titanium'), file_dir)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 174, in copytree\r\nos.makedirs(dst)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 157, in makedirs\r\nmkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: '/Developer'\r\nCreated iphone module project\r\nTraceback (most recent call last):\r\nFile \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120321131754/module/iphone/xcode/install.py\", line 18, in \r\nshutil.copytree(os.path.join(template_dir,'Titanium'), file_dir)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 174, in copytree\r\nos.makedirs(dst)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 157, in makedirs\r\nmkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: '/Developer'\r\nCreated iphone module project\r\nTraceback (most recent call last):\r\nFile \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120321131754/module/iphone/xcode/install.py\", line 18, in \r\nshutil.copytree(os.path.join(template_dir,'Titanium'), file_dir)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 174, in copytree\r\nos.makedirs(dst)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 150, in makedirs\r\nmakedirs(head, mode)\r\nFile \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py\", line 157, in makedirs\r\nmkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: '/Developer'\r\nCreated iphone module project\r\n{code}\r\n\r\nLooking at the code, it does not appear that install.py takes the variables into account:\r\n\r\n{code}\r\n#TODO: need to run xcode-select to get the true path to xcode\r\nxcodedir = os.path.join(\"/Developer\",\"Platforms\",\"iPhoneOS.platform\",\"Developer\",\"Library\",\"Xcode\")\r\n{code}\r\n\r\nThis also fails equivalently on the command line:\r\n\r\n{code}\r\n\"/usr/bin/python\" \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.0.v20120321131754/titanium.py\" \"create\" \"--type=module\" \"--id=asdasd\" \"--name=testModule\" \"--dir=/var/folders/ff/5n2k6kjj15l1c_3xkct_8z2w0000gp/T/module_temp3116096165008991932.tmp\" \"--platform=iphone\"\r\n{code}\r\n\r\nUnsure if this is related to TIMOB-7736.", "attachment": [], "flagged": false, "summary": "iOS: Titanium Mobile Module creations scripts do not take xcode-select or DEVELOPER_DIR into account", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "188051", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Eureka. ~/Library/Developer/Xcode/Templates/Application/File Templates/Appcelerator works on both Xcode 4.2 and 4.3, is xcode-select-agnostic, and is user-writable. Much better than the previous install location.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T13:38:39.000+0000", "updated": "2012-03-22T13:38:39.000+0000" }, { "id": "188102", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request awaiting review.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T16:19:27.000+0000", "updated": "2012-03-22T16:19:27.000+0000" }, { "id": "409333", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-06T18:15:40.000+0000", "updated": "2017-03-06T18:15:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }