{ "id": "84248", "key": "TIMOB-7001", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "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-25T10:14:27.000+0000", "created": "2011-12-25T09:30:20.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_module", "qe-ios031912", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14443", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "81130", "key": "TIMOB-5815", "fields": { "summary": "iOS: Native JS Modules not taken in consideration when running the optimalizer for a release build", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14444", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "83371", "key": "TIMOB-6458", "fields": { "summary": "iOS: CommonJS - native JavaScript modules for iOS encounter errors when referencing classes/objects in the Ti namespace", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16063", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88782", "key": "TIMOB-8288", "fields": { "summary": "iOS: Non-standard Titanium SDK location on OS X causes build scripts to fail with \"No module named tools\"", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-28T14:36:04.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I've seen people have troubles on Lion with the SDK in ~/Library, so I've checked it on Snow Leopard as well (SDK in /Library). Same problem.\r\n\r\nProblem is very easy to reproduce:\r\n1) titanium create --platform=iphone --type=module --dir=~/Documents/ --name=test --id=com.test\r\n2) cd ~/Documents/test\r\n3) ./build.py\r\n\r\n-> \r\nBUILD SUCCEEDED\r\n\r\n4) create ~/Documents/test/assets/com.test.js\r\n5) ./build.py\r\n\r\n->\r\nTraceback (most recent call last):\r\n File \"./build.py\", line 196, in \r\n compile_js(manifest,config)\r\n File \"./build.py\", line 77, in compile_js\r\n metadata = Compiler.make_function_from_file(path,js_file)\r\nTypeError: make_function_from_file() takes exactly 4 arguments (3 given)", "attachment": [], "flagged": false, "summary": "IOS pure js module - build.py fails ", "creator": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "environment": "OSX Lion/Snow Leopard\r\nTitanium SDK 1.8.0.1", "comment": { "comments": [ { "id": "177697", "author": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "body": "After doing some more testing it does work with setting TITANIUM_SDK_VERSION = 1.7.5 in titanium.xconfig. All newer versions fail (1.8.0.1 and 1.9.0.vxxxxx).", "updateAuthor": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-12-30T04:46:47.000+0000", "updated": "2011-12-30T04:46:47.000+0000" }, { "id": "178140", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an issue when building with 1.8.0.1 that I resolved as part of another set of bugs... going to link the tickets together.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T10:03:57.000+0000", "updated": "2012-01-05T10:03:57.000+0000" }, { "id": "179246", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.9.0.v20120111233134\r\nOSX Lion\r\n\r\nExpected behavior of module being built successfully following provided steps is shown ", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T14:27:29.000+0000", "updated": "2012-01-13T14:27:29.000+0000" }, { "id": "180261", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening and closing this issue to update label and Fix Version field.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T16:11:22.000+0000", "updated": "2012-01-23T16:11:22.000+0000" }, { "id": "181424", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "updated labels", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-01T17:42:11.000+0000", "updated": "2012-02-01T17:42:11.000+0000" }, { "id": "188063", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue\r\n\r\nTested with Ti Studio build 2.0.0.201203211914\r\nTi Mob SDK 2.0.0.v20120321231752 hash r1527faa2\r\nOSX Lion 10.7.3\r\n\r\nUsed the same test steps in the ticket and received the following error (before/after updating titanium.xcconfig)\r\n\r\nTraceback (most recent call last):\r\n File \"./build.py\", line 9, in \r\n from tools import ensure_dev_path\r\nImportError: No module named tools", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T14:33:47.000+0000", "updated": "2012-03-22T14:33:47.000+0000" }, { "id": "188094", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*NOTE*: For testing with OS X 10.7 you will also need to edit the {{titanium.xcconfig}} file to point to the correct SDK install (use ~/Library instead of /Library)", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-22T16:02:30.000+0000", "updated": "2012-03-22T16:02:30.000+0000" }, { "id": "188469", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 10.7.3 and 10.6.8 systems. Noticed the change in the titanium.xcconfig that added the \"~\". \r\n\r\nWhile building on Lion works as expected, building on 10.6.8 fails with:\r\nTraceback (most recent call last):\r\n File \"./build.py\", line 217, in \r\n build_module(manifest,config)\r\n File \"./build.py\", line 162, in build_module\r\n from tools import ensure_dev_path\r\nImportError: No module named tools\r\n\r\nTested with SDK 2.0.0.v20120323221800 and Titanium Studio, build: 2.0.0.201203240504.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T12:02:39.000+0000", "updated": "2012-03-24T12:02:39.000+0000" }, { "id": "188512", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a testing failure. The SDK is not *always* located at {{/Library}} or {{~/Library}}, it's located where the SDK is installed (these are just the default locations). For some machines this will be a nonstandard location, which may include some QE test machines.\r\n\r\nA more accurate description of how to modify the {{titanium.xcconfig}} is:\r\n\r\n> *TITANIUM_SDK_VERSION MUST POINT TO THE VERSION THE MODULE IS INTENDED TO BE BUILT WITH* \r\n> *TITANIUM_SDK MUST POINT TO THE LOCATION OF THE INSTALLED SDK* (This is usually the Ti Studio->Preferences->Titanium Studio->Titanium->Titanium SDK Home value provides the base path, the remainder is expected to always be {{mobilesdk/osx/$(TITANIUM_SDK_VERSION)}})\r\n\r\nIngo, myself, and all functional test reviewers have all confirmed the fix at various SDK install paths. While leaving these instructions I tested by installing at a nonstandard location {{/opt}} and configuring the {{titanium.xcconfig}} as above.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-25T10:08:40.000+0000", "updated": "2012-03-25T10:12:50.000+0000" }, { "id": "188513", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also be aware that Ingo has filed ticket TIMOB-8288 to add automatic SDK detection to module creation.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-25T10:23:56.000+0000", "updated": "2012-03-25T10:23:56.000+0000" }, { "id": "189060", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with SDK 2.0.0.v20120328000206. Checked 10.6.8 and 10.7.3 and both could create and build with no change to the titanium.xcconfig path.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-28T14:34:35.000+0000", "updated": "2012-03-28T14:34:35.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }