Remote debug safari ios9 and MacOs 10.13 - iphone

I have an old iphone 4s with iOS9. I checked Settings > Safari > Advanced : Web Inspector on the device and enabled Safari > Preferences > Advanced : Show Develop on the Mac.
When I connect the phone and browse with safari, the iphone doesn't appear in the Develop menu.
The process works fine with an ipad iOS 11 (I can access the debug console via the Develop menu).
Anyone has an idear on this ?
Thanks.

With Apple this usually means that you should update Safari to the latest version. Well, you better upgrade everything with Apple. Sometimes they break and fix things.
Another thing you could try is to reset the PRAM and SMC that often solve Mac hardware problems :
http://osxdaily.com/2010/03/24/when-and-how-to-reset-your-mac-system-management-controller-smc/
And last, check that you have enabled web inspector on the said iphone. Sometimes we forget the very basic thing or it might have been turned off by something.
Some people with the same problem solved it by using Safari Technology Preview: https://developer.apple.com/safari/download/

Related

Iphone Simulator not showing in developer menu

I recently updated to MacOs Mojave also Safari Technology Preview (Release 67 (Safari 12.1, WebKit 14607.1.9.0.1))
Till now I was in Sierra and I was able to use Web Inspector in safari technology preview to debug Iphone Simulator website, but now is not working so I open a website in iphone simulator, but Iphone is not showing in developer menu in Safari Technology Preview
Does this happen to anyone else ?
try to cmd + d after check Hardware > keyboard > connect hardware keyboard as below

debugging jquery mobile on iphone chrome browser

I have a simple login page in a mobile site that should be reached the very first time the user arrives at the site. It used to work before (I used to test it by clearing cookies on the phone.) Now it has stopped working and I am not sure how to debug it. Here are the symptoms
It works on safari running on iphone
It works on ipad chrome
It works on desktop chrome (and ripple iphone simulator)
But it does not work on chrome browser running on iphone
Any thoughts on how I can go about debugging this issue?
Thanks!
Turns out I had done a chrome upgrade two days back. I did not reboot the iphone ater that. I switched the phone off and on and it worked.

Emulator for iPhone, iPad, and Mobile Browser

I'm building website for mobile,
and I want to running the application in the mobile browser, iPhone, and iPad.
Is there any download link for the emulator?
I prefer a free application.
You can run your app in mobile browsers in the iOS Simulator on the Mac, which can simulate both iPhone and iPad.
If you are on a Mac, use Spotlight (command-space) to search for "iOS". It should come up if it's installed.
If it is not installed, install XCode and it should be installed with it.
If you are not on a Mac, there is no official emulator or simulator. There may be unofficial ones, but they probably won't be free, if they exist at all.
to run iPhone emulator you will need a mac (it's only available on macOS). Install xCode (http://developer.apple.com/xcode/index.php)
end run simulator. it's free.
If you are on a Mac then use XCode. If you are stuck on Windows try iPhone Drift http://www.aviassin.com/iphonedrift or Electric Plum http://www.electricplum.com/simulator.aspx
if you just want to quickly view how a webpage would render at various mobile device resolutions then synthphone.com is a nice little webpage.
NOTE: synthphone is NOT an emulator! this website only lets you simulate browsers of various widths and heights!
http://synthphone.com
you can even link directly to a url via query strings. for example, click the link below which points to the Sencha Touch 2 carousel.
http://www.synthphone.com/?u=http://dev.sencha.com/deploy/touch/examples/production/carousel/index.html
(Use your mouse like a finger to slide around the images etc.)
enjoy!

iPhone Simulator Display

I'm using Titanium to build my first mobile app. Ultimately, I need to to be universal, but I'm focusing on the iPhone initially in order to learn my way around. I'm running into a problem with image display in that I need to test both the retina and non-retina display, but I can't seem to toggle between the 2.
By default, for whatever reason, my simulator launches with the "old" iPhone resolution (specifically, the combo of iOS 5 -- so location bits mostly work -- and old iPhone hardware). I see in the simulator's Hardware menu that I should be able to switch to iPhone (retina), but attempting to do so just aborts the simulator all together.
Is there a better way to navigate between hardware/software combinations in the simulator? Can the default configuration be changed? Any tips or techniques would be much appreciated by this n00b to mobile dev. For whatever it's worth, the simulator version is 5.0 (272) and, although I'm not developing native code, my XCode version is 4.2.1.
Thanks.
Titanium has a debugger connection running between the simulator and Titanium Studio. When you switch hardware the connection is severed and titanium aborts the simulator all together.
What you can do, is create a build in titanium studio, which builds an Xcode project (project name > build > iPhone).
Then, open this build in xCode, and run it from there. This way there is no debugging session running, but you can test it on multiple devices / OS versions.
Good luck!

How can I test how my websites render on Mobile Safari without buying an iPhone?

All the "emulators" I've found via google are simply a skin on top of Safari desktop or use your OS's default browser :( I borrowed my friends iPhone and noticed the CSS for a pure CSS drop-down menu doesn't render properly and you can't click the links, yet it renders properly on Safari desktop and every other browser even Internet Explorer 6 and 7. In other words the site is unnavigable on the iPhone. How can I test the Safari Mobile rendering engine without buying an iPhone?
edit: Okay it appears there is an iPhone simulator for Mac. I will just see if an OSX image will dual-boot on another harddrive partition of my laptop, if not I'll scrounge for a used iPod Touch though I generally disdain possessing superfluous peripherals.
Either use a Mac and run the iPhone Simulator, or get an old iPod touch, which isn't that expensive.
If it depends on rollover of any sort then I think you've discovered the problem.
Is purchasing a mac mini within your budget? Then you could load the emulater in XCode.