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 236473 - Cannot open MobileSafari on iPhoneSimulator 7.0
Summary: Cannot open MobileSafari on iPhoneSimulator 7.0
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-27 14:01 UTC by Jan Becicka
Modified: 2013-10-04 09:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2013-09-27 14:01:58 UTC
MobileSafari is not open when invoking through ios-sim. Works fine with Xcode 4. Does not work with Xcode 5.
Comment 1 Jan Becicka 2013-09-27 18:14:24 UTC
command 
ios-sim launch /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Applications/MobileSafari.app --args -u http://google.com

fails with this error

Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x7fe289c1a570 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}

Trying to contact phonegap developers (authors of ios-sim) to evaluate.
Comment 2 Jan Becicka 2013-09-27 18:35:04 UTC
Reported as
https://github.com/phonegap/ios-sim/issues/60
Comment 3 Jan Becicka 2013-09-30 09:46:01 UTC
Changeset: 4d196f02282b
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-09-30 11:44
Message:
Comment 4 Jan Becicka 2013-09-30 09:54:04 UTC
The bug is in iOS-sim. I don't have any estimates, if they are going to fix it or not.

I implemented workaround to detect, that iOS-sim is not able to run MobileSafari and improved message:

Connecting to iOS Simulator.
Please start Mobile Safari if it is not already running.

User must start Mobile Safari by himself and then IDE connects to iOS simulator. This is the best what I'm able to do now.
Comment 5 Vladimir Riha 2013-09-30 10:23:10 UTC
Would it be safe to add it to 7.4 (since there are already 2 more candidates anyway)? This could help users to "make it working" with Xcode5 a lot.
Comment 6 Jan Becicka 2013-09-30 11:37:51 UTC
Yes. We should integrate it IMO.
Comment 7 Vladimir Riha 2013-09-30 11:39:45 UTC
OK, adding proper keyword. I'll verify it asap
Comment 8 Vladimir Riha 2013-09-30 13:37:30 UTC
Verified in web-main, dialog is opened and after starting mobile Safari, inspection starts. Please continue with integration to 7.4 per HR instructions. Thank you


Product Version: NetBeans IDE Dev (Build web-main-11700-on-20130930)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b14
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 9 Quality Engineering 2013-10-01 01:59:18 UTC
Integrated into 'main-silver', will be available in build *201310010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4d196f02282b
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #236473 - Cannot open MobileSafari on iPhoneSimulator 7.0
Comment 10 Marian Mirilovic 2013-10-01 07:20:17 UTC
Please integrate all fixes into releases/release74 branch TODAY (10/1) by 10pm CEST, we are going to build final 7.4 build during the night. Thanks in advance.
Comment 11 Jan Becicka 2013-10-01 11:37:55 UTC
Workaround commited to release74.
the issue itself reported as https://github.com/phonegap/ios-sim/issues/60
Comment 12 Vladimir Riha 2013-10-04 09:41:20 UTC
Verified in 7.4

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b14
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)