This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 149460 [details] IDE log If I try to run HTML5 project (not Cordova) in iOS Simulator with iOS 8, IDE only shows dialog telling me to start mobile Safari. However Safari is already running. I'm attaching IDE log with some exception. Thank you Product Version: NetBeans IDE 8.0.1 (Build 201408251540) Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26 System: Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)
Same problem when running on mobile Safari on iOS device, IDE tells me to make sure device is attached etc. IDE log contains the same exception
Seems to be issue in ios-sim https://github.com/phonegap/ios-sim/issues/118
Possible patch candidate
Removing 801patch2-candidate whiteboard, since the issue in iOS-sim hasn't been fixed, yet (see comment #2).
You can try to fix it by using xcrun simctl openurl <device> <url>
Changing title, since running of the mobile Safari on simulator and device is different and root cause is different as well. Changeset: ba01db23b9ba Author: Roman Svitanic <rsvitanic@netbeans.org> Date: 2014-11-28 17:04 Message: Fixed folder ordering
Currently starting of iOS simulator and launching of mobile Safari is splitted in two parts. Issues can occur if simulator is not running, because it is impossible to know when it is fully started, since ios-sim start (and xcrun instruments -w as well) return immediately. If mobile Safari is not started after simulator boots, it may be needed to run it manually. If the simulator is already running then there should not be problems. Running Cordova project as HTML5 webapp in mobile Safari on iOS Device is different from running on simulator and it does not work mainly because of bug #247400.
Integrated into 'main-silver', will be available in build *201411300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ba01db23b9ba User: Roman Svitanic <rsvitanic@netbeans.org> Log: Fixed folder ordering Task #247399 - Unable to run HTML5 project in mobile Safari in iOS with iOS 8
Thank you. Carefully verifying :) I've tried it several times, and each time it worked just fine no matter if simulator has been running or not (tested on old MacBook 2008 early). I think the 10secs waiting when iOS Simulator is not running is not a big deal: typically it will happen only once during session and each following run action is immediate. The only problem I've seen is NoSuchElementException exception but after discussion with Roman that should not happen once web inspection is fixed. I'll add steps to reproduce and stack trace to issue 247400 and will test it once the bug will be fixed. Product Version: NetBeans IDE Dev (Build 201412010001) Java: 1.7.0_71; Java HotSpot(TM) 64-Bit Server VM 24.71-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14 System: Mac OS X version 10.10.1 running on x86_64; UTF-8; en_US (nb)