Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug an cordova app on iOS7 with XCode 5

I googled but did not find anything.

How can I debug an cordova 3.3.0 app using XCode 5 and a physical iOS7 iPad Retina?

I get a white screen and I have no idea what is happening. Is there an JavaScript error? Is a file missing?

This black box is driving me insane. I tried jsconsole.com, but the app does not load the external js file.

Are there any tools that can help here? I don't see anything, it's just frustrating.

like image 477
Johannes Klauß Avatar asked Jan 23 '14 10:01

Johannes Klauß


2 Answers

You can debug with the desktop safari app, enable the development settings for safari desktop and the web inspector for safari mobile (inside settings app -> safari -> advanced). Then on the new development tab of desktop safari you'll see your device

like image 140
jcesarmobile Avatar answered Oct 12 '22 07:10

jcesarmobile


To speed up your development and debugging you can use the Ripple Emulator.

Here you find a good tutorial how to install and use Ripple with Cordova / PhoneGap 3.x

Have fun...

like image 36
Kastell Avatar answered Oct 12 '22 08:10

Kastell