{ "id": "92672", "key": "TIMOB-9340", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-07T17:51:07.000+0000", "created": "2012-06-01T13:01:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "20598", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "100449", "key": "TIMOB-10768", "fields": { "summary": "iOS: Files in Resources/iphone directory appear twice in iOS ipa file ", "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": "Medium", "id": "3" }, "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-09-04T16:44:46.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": "h3. Problem\r\nA Titnaium class, like Ti.UI.createWindow(), will not be included in the app if deployed to device and file in which it is declared is in the iphone folder.\r\n\r\nh3. To reporduce:\r\n1. Create a new app\r\n2. Place this is app.js\r\n{code}\r\nvar W = {};\r\nTi.include('mainwindow.js');\r\nW.MainWindow().open();\r\n{code}\r\n3. Create a new file and call it mainwindow.js\r\n4. Place this file in the iphone folder (inside of the Resources)\r\n5. Place this code in that file:\r\n{code}\r\nW.MainWindow = function(){\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor: '#ccc'\r\n\t});\r\n\tvar map = Ti.Map.createView();\r\n\twin.add(map)\r\n\treturn {\r\n\t\topen: function(args){\r\n\t\t\targs = args || {};\r\n\t\t\twin.open(args);\r\n\t\t}\r\n\t}\r\n}\r\n{code}\r\n6. Run the app in the simulator\r\n7. In the sim everything runs fine.\r\n8. Run the app in the real device\r\n9. red screen of death will pop up!\r\n\r\nh3. My guess of the source of the problem\r\n- compiler.py - ignoreDirs = ['.git','.svn','_svn','CVS','android','iphone','mobileweb'];\r\n\r\nThe code gets copied to the final built, but apparently the add_symbol() is never called in those files in the \"iphone\" dir inside the Resources dir.", "attachment": [], "flagged": false, "summary": "iOS: Titanium classes not found when compiling for device", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.0 (06/01/12 11:42 ac0b176)", "comment": { "comments": [ { "id": "207646", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Adding environment info -\r\nTested with Titanium SDK: 2.1.1.v20120712160111\r\nTested with Titanium  Studio: 2.1.0.201206251749\r\nDevice - iPad 1 iOS 5.1, Simulator \r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T02:29:48.000+0000", "updated": "2012-07-16T02:29:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }