iOS Simulator - how to test sites?

Very basic question, but how does one actually test sites using iOS simulator?

Whenever I run it from the browser preview, I get a ‘the document ‘index.html’ could not be opened. iOS simulator cannot open files in the ‘HTML’ format’ error.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Very basic question, but how does one actually test sites using iOS
simulator?

Here’s how I’m using it…

First, I preview my site - either locally or on my test server - in Safari.
This is because I make heavy use of the Developer tools, mostly the Inspect
Element which allows me to real-time test CSS and other code changes. Then
open the iOS Simulator so the desired Device window is side by side with
Safari and a little high up - to make room for the Inspect Element window
(yes, I have a 27" iMac).

From the iOS Simulator device window, launch the iOS Safari browser, then
drag your url from the Mac Safari browser anywhere into the iOS Safari
browser window to load that url. It’s that easy.

You can then use the Safari developer tools on the iOS Simulator from the
Developer menu in Mac Safari. This helps me tweak style code for different
devices - which may be a whole other topic for you.

Hope this helps.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, but I can’t get that to work. I tried that before.
I just can’t get the simulator to accept the url.

Why does it keep coming up with the error I mentioned in the op?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Do. Not. Know. My answer was basic, so you are obviously experiencing
something that is not. Basic.

Cheers.


Ernie Simpson

On Sun, Sep 14, 2014 at 12:51 PM, Iain Mackenzie email@hidden wrote:

Thanks, but I can’t get that to work. I tried that before.
I just can’t get the simulator to accept the url.

Why does it keep coming up with the error I mentioned in the op?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I haven’t really used the simulator in Freeway before, as I have always tested sites on actual devices, but I thought it might save a bit of time in the early stages at least.

What I assumed would happen was that by selecting the iOS simulator in the Browser option in FW7, that the iOS Safari would just load the site up like the desktop version. But no, it doesn’t.

Of course, I can enter the URL into iOS Safari, but that kind of defeats the point. I’m sure I must be missing something here.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Surely someone must know how to get this working!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I haven’t tried this in a while, but tell me what version of Mac OS X you are using, and which version of Xcode? I just updated to Mavericks at the weekend, and haven’t tried the newest Xcode yet.

Walter

On Sep 15, 2014, at 11:48 AM, Iain Mackenzie email@hidden wrote:

Surely someone must know how to get this working!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter, I’m using Yosemite DP8 and XCode 6 GM (which will get public release on 17th.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ll let you know what I find in that environment when it’s not beta and somebody else has driven it with their crash helmet on…

What I have found in Mavericks is that if I preview in Safari, then drag the URL into the simulator while MobileSafari is running, it Just Works™

Walter

On Sep 16, 2014, at 6:43 PM, Iain Mackenzie email@hidden wrote:

Walter, I’m using Yosemite DP8 and XCode 6 GM (which will get public release on 17th.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
List Options | FreewayTalk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What I have found in Mavericks is that if I preview in Safari, then drag
the URL into the simulator while MobileSafari is running, it Just Works™

That’s what I said!

Though, in fairness, it does sound a lot smarter coming from you :wink:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I take your point Walter, but Xcode 6 is out of beta with the GM last week, and that will become public later today along with iOS8.

I’ll try it on my wife’s Mavericks later, but I think I must be doing something wrong.

Normally, when clicking on Browser in top right, Safari (default) automatically loads the site, or if selecting another browser, say, Chrome, then the same thing happens. However, if I select iOS Simulator, this does not happen, but it only goes to the iOS home screen. Then if I Ioad mobile Safari, no sign of the site.

OK, so you guys are saying drag the url (from desktop Safari?) onto the mobile Safari window or address box. That doesn’t work. The text being dragged just gets bounced back to desktop Safari.

Even if I copy the url, it will not paste into the mobile Safari box. (I can, however, manually type addresses successfully.)

I don’t understand why one should have to load the site into a desktop browser, then load the simulator and then drag the url anyway. Why is not seamless like any of the other browsers?

I’m becoming frustrated with this, as endless uploading to the server to test on my iOS devices is a real pain.

I guess I should contact support to understand what is going on here.

I’ll let you know what I find in that environment when it’s not beta and somebody else has driven it with their crash helmet on…

What I have found in Mavericks is that if I preview in Safari, then drag the URL into the simulator while MobileSafari is running, it Just Works™

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

First, I couldn’t see any way to add the iOS Simulator as a direct choice in the Preview in Browser list. How did you manage that?

Second, dragging the URL is slightly nuanced – you have to click on the favicon and drag from that point. I was able (following that starting point) to drag the URL from an open desktop Safari window onto either the MobileSafari icon in the tray of the (already open) iOS Simulator window, or into an already open MobileSafari window in the Simulator.

Either of these gestures had the desired effect of opening the desired page in the simulated browser. From there, changing the device in the Simulator’s menu caused the entire window to rebuild, and made it lose the URL, so I had to drag it over again at each size. In my desktop setup, I have two large screens tiled together, so I have the width needed to see all of this at once.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter.

I didn’t ‘do’ anything to get iOS simulator on the browser list. It’s just always been there! I assumed it is added automatically by FWP.

Not sure what you mean by ‘click on the favicon’.

Is it possible to post screen grabs here?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options