Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugg iOS Cordova app

I have built an iOS app with Cordova and I'm trying to debug it with my Mac. I have followed this tutorial, but when I go to Develop -> iPhone xxx there is no apps able to be debugged.

I have built the app using Intel XDK tool. Is there a way to enable debugging in my iOS app?

Thanks.

EDIT

I have tried to debug my app with GapDebug but it doesn't recognize my app as debuggable.

I have created my app with a production/distribution certificate, not with development one. Maybe, can it be the reason why I can't debug my app?

like image 558
Héctor Avatar asked Sep 28 '22 18:09

Héctor


2 Answers

Every Application you create with cordova is compiled with an activated Debugmode. If it is not, you're able to change this via https://stackoverflow.com/a/12499274/3671726

Instead of debugging your Application with Safari, i would recommend you to install Google Chrome and GapDebug in combination. Go on that website, check out that video - you'll love that tool. Is very impressive, how and how smart gapDebug handles your debugging.

Solved

Like he found out on himself, he compiled the application with the wrong certificate. So be sure to use a provisioning profile which includes a development certificate and not a distribution certificate.

like image 119
Sithys Avatar answered Oct 17 '22 16:10

Sithys


I was using a distribution/production certificate to sign my app, so I couldn't debug it. I have created a new provisioning profile with a development certificate and now it is working like a charm.

I'm using GapDebug like said Sithys. It is a good tool, thanks.

like image 44
Héctor Avatar answered Oct 17 '22 15:10

Héctor