console.log not working in an iOS PhoneGap 3.0 app

后端 未结 8 1390
庸人自扰
庸人自扰 2020-12-14 02:00

I am upgrading an app from PhoneGap 1.9 to PhoneGap 3.0. The console.log() function is not working anymore. Previously, the ouput was written in the XCode console. What\'s t

8条回答
  •  北海茫月
    2020-12-14 02:45

    You need the debug console plugin added to your project:

    phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
    

    In later versions of phonegap/cordova, to add the debug console plugin in your project:

    cordova plugin add org.apache.cordova.console

提交回复
热议问题