[ https://issues.apache.org/jira/browse/CB-13922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hossein Amin updated CB-13922: ------------------------------ Description: Hi, I was trying to get cordova-plugin-browsersync to work with ios simulator. I discovered that at /bin/templates/scripts/cordova/lib/run.js@startSim {{return iossim.launch(appPath, 'com.apple.CoreSimulator.SimDeviceType.' + target, logPath, '--exit');}} This call is made inside main process, Where request for exit will end main process with no chance to catch it. I assume this call returns a promise for when launch was successful, If that can happen. Things will go smoothly after that. was: Hi, I was trying to get cordova-plugin-browsersync to work with ios simulator. I discovered that at /bin/templates/scripts/cordova/lib/run.js@startSim return iossim.launch(appPath, 'com.apple.CoreSimulator.SimDeviceType.' + target, logPath, '--exit'); This call is made inside main process, Where request for exit will end main process with no chance to catch it. I assume this call returns a promise for when launch was successful, If that can happen. Things will go smoothly after that. > sim launch force-fully exits process > ------------------------------------ > > Key: CB-13922 > URL: https://issues.apache.org/jira/browse/CB-13922 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Affects Versions: cordova-ios 4.5.0 > Reporter: Hossein Amin > Assignee: Suraj Pindoria > Priority: Trivial > Labels: pull-request-available > Original Estimate: 2h > Remaining Estimate: 2h > > Hi, I was trying to get cordova-plugin-browsersync to work with ios simulator. > I discovered that at /bin/templates/scripts/cordova/lib/run.js@startSim > {{return iossim.launch(appPath, 'com.apple.CoreSimulator.SimDeviceType.' + > target, logPath, '--exit');}} > > This call is made inside main process, Where request for exit will end main > process with no chance to catch it. > > I assume this call returns a promise for when launch was successful, If that > can happen. > Things will go smoothly after that. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org