console.log not working in an iOS PhoneGap 3.0 app

后端 未结 8 1404
庸人自扰
庸人自扰 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:44

    Problem

    The following or a similar error message occurs when adding the console plugin to the ios platform (or after reinstalling) via Command-line Interface:

    "CDVPlugin class CDVLogger (pluginName: Console) does not exist."

    Solution

    Open your Xcode project and go to the tab "Build Phases". Now open the drop-down named "Compile Sources". Click on the "+" sign at the end of the list and add "CDVLogger.m" or any other missing source.

提交回复
热议问题