{ "id": "62591", "key": "TIMOB-1959", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T03:06:32.000+0000", "created": "2011-04-15T03:06:31.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:31:28.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": "{html}

There doesn't seem to be anyway to do an absolute path using\nTi.include in iOS. I've tried the following with various\nmodifications of each with no success:

\n

Ti.include('/windows/menu.js');
\nTi.include('app://windows/menu.js');
\nTi.include(Ti.fileSystem.resourcesDirectory+'/windows/menu.js');

\n

[ERROR] error loading path:\nfile://localhost/Users/eddie/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/CE687F4B-F7E7-4543-8217-898478D9B6B0/Manatee.app//Users/eddie/Dropbox/Mobile%20Apps/Manatee/Resources/windows/menu.js,\nError Domain=NSCocoaErrorDomain Code=260 \"The operation\ncouldn’t be completed. (Cocoa error 260.)\" UserInfo=0x7e34260\n{NSFilePath=/Users/eddie/Library/Application Support/iPhone\nSimulator/4.1/Applications/CE687F4B-F7E7-4543-8217-898478D9B6B0/Manatee.app//Users/eddie/Dropbox/Mobile\nApps/Manatee/Resources/windows/menu.js

{html}", "attachment": [], "flagged": false, "summary": "Ti.include can not use absolute paths in iOS", "creator": { "name": "eddiemonge", "key": "eddiemonge", "displayName": "eddiemonge", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "eddiemonge", "key": "eddiemonge", "displayName": "eddiemonge", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127080", "author": { "name": "jacquescrocker", "key": "jacquescrocker", "displayName": "Jacques Crocker", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

+1

\n

There really needs to be some way to include a file via an\nabsolute paths in Titanium. This limitation is forcing me to put\nevery single window in the root directory, which is non-ideal in\nmany cases.

{html}", "updateAuthor": { "name": "jacquescrocker", "key": "jacquescrocker", "displayName": "Jacques Crocker", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:32.000+0000", "updated": "2011-04-15T03:06:32.000+0000" }, { "id": "127081", "author": { "name": "johnwelch", "key": "johnwelch", "displayName": "John Welch", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also here: \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/2585-...

\n

I'm also waiting on this...

{html}", "updateAuthor": { "name": "johnwelch", "key": "johnwelch", "displayName": "John Welch", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:32.000+0000", "updated": "2011-04-15T03:06:32.000+0000" }, { "id": "127082", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Dupe of #2585, as per above.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:32.000+0000", "updated": "2011-04-15T03:06:32.000+0000" }, { "id": "410599", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:31:28.000+0000", "updated": "2017-03-09T21:31:28.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }