Project: titanium
Issue TIMOB-18402: LiveView: Throwing error while evaluating Android conditional code on iOS 
h3. Issue While working on Appcelerator Studio and running the app on iOS with liveview we are receiving an error related to an Android conditional code which is causing an error to be thrown in the console "[INFO] : [LiveView] Error Evaluating app.js @ Line: 16". h3. Log {code} -- Start simulator log ------------------------------------------------------- [INFO] : Application started [DEBUG] : Reading stylesheet from: /Users/marco/Library/Developer/CoreSimulator/Devices/A84E39F0-A1C7-4056-8017-8E26CF0EDDED/data/Containers/Bundle/Application/12C3A09D-8B20-4334-A8B3-15590578B1BC/sample.app/stylesheet.plist [LiveView] Client connected [DEBUG] : 2015-01-19 10:52:21.278 sample[93591:4712422] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. [DEBUG] : 2015-01-19 10:52:21.278 sample[93591:4712422] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. [INFO] : sample/1.0 (3.5.0.0014f83) [DEBUG] : Loading: /Users/marco/Library/Developer/CoreSimulator/Devices/A84E39F0-A1C7-4056-8017-8E26CF0EDDED/data/Containers/Bundle/Application/12C3A09D-8B20-4334-A8B3-15590578B1BC/sample.app/app.js, Resource: app_js [DEBUG] : Loading: /Users/marco/Library/Developer/CoreSimulator/Devices/A84E39F0-A1C7-4056-8017-8E26CF0EDDED/data/Containers/Bundle/Application/12C3A09D-8B20-4334-A8B3-15590578B1BC/sample.app/_app_props_.json, Resource: _app_props__json [INFO] : This is iOS [INFO] : dd [INFO] : [LiveView] Error Evaluating app.js @ Line: 16 [ERROR] : ReferenceError: Can't find variable: x [ERROR] : File: app.js [ERROR] : Line: 16 [ERROR] : SourceId: [ERROR] : Backtrace: [ERROR] : undefined [DEBUG] : Application booted in 330.896020 ms {code} h3. Testcase {code} var win = Ti.UI.createWindow(); if(Ti.Platform.osname == 'android'){	Ti.API.info('This is Android');	var x = 'dd';	Ti.API.info(x); }else{	Ti.API.info('This is iOS');	var y = 'dd';	Ti.API.info(y); } win.open(); {code} h3. Steps to repro 1. Enable liveview 2. Run the testcase in iOS Expected Result: The app will open Actual Result: The app opens but we receive an error log "[INFO] : [LiveView] Error Evaluating app.js @ Line: 16" related to and android conditional code
Story points: 8