Project: titanium
Issue TIMOB-18765: iOS: WebView do not recognize local HTML File using Ti.sourceDirectory if Project Name has a space
h6.Description: Since Ti SDK 3.5.0, WebView does no recognise the html file when using Ti.sourceDirectory File system, if there is space in app name. h6.Reproduce: 1. Create a classic project named "Simple Test" (with space) 2. Create a folder named "html" under Resource folder. 3. Create a simple html file name "comingSoon.html", like following {code:title=comingSoon.html}

Hello World!

Content to follow soon

{code} 4.Add following code into app.js file {code:title=app.js} ar win = Ti.UI.createWindow({	backgroundColor: 'white' }); var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,'/html/comingSoon.html'); if (f.exists()) {	var contents = f.read();	alert('Output the file:'+contents.text); } else {	Ti.API.info("No such file!"); } var URL = Ti.Filesystem.resourcesDirectory + '/html/comingSoon.html'; var wv = Ti.UI.createWebView({	top: 30,	url: URL }); win.add(wv); win.open(); {code} h6.Expect Result: The webview should display normally. h6.Actual Result: The error pop out in console log: *"couldn't load URL: app://com.cocoafish.sliangPush/Users/shuoliang/Library/Developer/CoreSimulator/Devices/EA379BD7-8255-4555-9A89-79678C7C68EB/data/Containers/Bundle/Application/BCD65E99-C189-4889-9177-CD870924377D/Simple%20Push.app/html/comingSoon.html"* h6.Note: 1. No such problem in SDK 3.4.1 2. Change the app name without space, problem gone.
Story points: 5