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.

Bug 247399 - Unable to run HTML5 project in mobile Safari in iOS Simulator with iOS 8
Summary: Unable to run HTML5 project in mobile Safari in iOS Simulator with iOS 8
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 11:47 UTC by Vladimir Riha
Modified: 2014-12-01 16:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (36.05 KB, text/plain)
2014-09-23 11:47 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-09-23 11:47:47 UTC
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)
Comment 1 Vladimir Riha 2014-09-23 11:53:34 UTC
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
Comment 2 Jan Becicka 2014-09-24 11:13:57 UTC
Seems to be issue in ios-sim
https://github.com/phonegap/ios-sim/issues/118
Comment 3 Vladimir Riha 2014-10-13 08:02:41 UTC
Possible patch candidate
Comment 4 Roman Svitanic 2014-11-06 09:06:44 UTC
Removing 801patch2-candidate whiteboard, since the issue in iOS-sim hasn't been fixed, yet (see comment #2).
Comment 5 Jan Becicka 2014-11-27 11:52:51 UTC
You can try to fix it by using
xcrun simctl openurl <device> <url>
Comment 6 Roman Svitanic 2014-11-28 16:04:57 UTC
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
Comment 7 Roman Svitanic 2014-11-28 16:13:11 UTC
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.
Comment 8 Quality Engineering 2014-11-30 04:39:32 UTC
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
Comment 9 Vladimir Riha 2014-12-01 16:05:06 UTC
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)