{ "id": "140812", "key": "AC-1489", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-12-10T18:43:15.000+0000", "created": "2014-12-02T17:48:56.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [ { "id": "43989", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "134207", "key": "TIMOB-17458", "fields": { "summary": "iOS: ApplicationSupportDirectory is not created when analytics are disabled", "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": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:56.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h4. Problem\r\nDocumentation lists applicationSupportDirectory as a constant available within the Ti.Filesystem namespace. Apple doesn't seem to be creating this folder for us any more? If you query the constant using getApplicationSupportDirectory(), it will dutifully return a string referencing a folder that does not actually exist.\r\n\r\nh4. Expectation\r\nThat if the documentation references a constant for a folder in which a developer is supposed to be able to write files, the folder actually exists.\r\n\r\nApple folder references and suggested practices (see Library)\r\nhttps://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html\r\n\r\nAppcelerator documentation\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Filesystem-property-applicationDataDirectory", "attachment": [], "flagged": false, "summary": "applicationSupportDirectory references a folder that does not actually exist.", "creator": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "environment": "{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.1\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 24.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.1\r\n node-appc Version = 0.2.14\r\n\r\nTitanium SDKs\r\n 3.4.1.GA\r\n Version = 3.4.1\r\n Install Location = /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.1.GA\r\n Platforms = iphone, mobileweb, android, blackberry\r\n git Hash = 5982e8f\r\n git Timestamp = 11/13/14 13:33\r\n node-appc Version = 0.2.17\r\nJava Development Kit\r\n Version = 1.6.0_65\r\n Java Home = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\r\nXcode\r\n 6.1 (build 6A1052d) - Xcode default\r\n Install Location = /Applications/Xcode.app/Contents/Developer\r\n iOS SDKs = 8.1\r\n iOS Simulators = 8.1\r\n Supported by TiSDK 3.4.1.GA = yes\r\n{code}", "comment": { "comments": [ { "id": "335728", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~sfeather]! \r\n\r\nDo you mind running this code? \r\n\r\n1. Create a new mobile project (classic titanium)\r\n2. Replace app.js with this code:\r\n{code}\r\nvar txt = Ti.Filesystem.getApplicationSupportDirectory();\r\nTi.API.info(txt);\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationSupportDirectory, \"hello.txt\");\r\n \r\n // Save file\r\n file.write(\"hello.txt\");\r\n \r\n // Debug: Test if file exist now\r\n if(file.exists) {\r\n Ti.API.info('[saveFile] Saved: YES! (' + file.nativePath + ')');\r\n } else {\r\n Ti.API.info('[saveFile] Saved: NO!');\r\n }\r\n{code} \r\n3. Run it in a device.\r\n\r\nPlease share your results with us. \r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-12-09T23:05:05.000+0000", "updated": "2014-12-09T23:06:03.000+0000" }, { "id": "335747", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "see TIMOB-17458", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2014-12-09T23:52:45.000+0000", "updated": "2014-12-09T23:52:45.000+0000" }, { "id": "335838", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Going to resolve as a duplicate of TIMOB-17458. We will fix that issue to address this one.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T18:43:07.000+0000", "updated": "2014-12-10T18:43:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }