ios - 使用 phonegap 3.4 登录 xcode 的控制台

标签 ios xcode cordova

我很抱歉,因为我知道之前有人问过这个问题,但我完全不知道为什么这不起作用。我包含了调试控制台插件:

$ cordova plugin add org.apache.cordova.console

我在 ios 构建之前做了这个。我可以在 xcode 目录中看到该插件。我已经在 deviceready 函数中登录控制台,在 deviceready 函数之后,没有任何工作。

我需要在我的 config.xml 中添加功能标签吗?在 xcode 内部,它说 CDVlogger 是未版本化的。这是一个问题吗?

如有任何帮助,我们将不胜感激。这是 phonegap 3.4 版。

最佳答案

Please remove the console plugin by below command(you can use any of one commands)
$ cordova plugin rm org.apache.cordova.console
$ cordova plugin remove org.apache.cordova.console 


than add them by this command
$ cordova plugin add org.apache.cordova.console

and check into config.xml file it is generated 
 <feature name="Console">
        <param name="ios-package" value="CDVLogger" />
    </feature>

关于ios - 使用 phonegap 3.4 登录 xcode 的控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23329819/

相关文章:

ios 如果没有提供所有功能供审查,我的应用程序会被拒绝吗

cordova - 如何对 Ionic 项目中的 config.xml 进行持久更改

ios - Swift Action 扩展 NSString 错误?

ios - enumerateGroupsWithTypes 循环没有停止

iphone - iOS sdk 的最佳绘图库

ios - 在 UICollectionView 中注册多个单元格(swift 3)

Xcode 9 中的 Swift 4 - 如何轻量级迁移 Core Data?

ios - 在 IOS Ionic 2 上打开外部 URL

javascript - 使用 jquery 检索 html 格式的内容

ios - 添加单元格时,UITableView 不会更改 UIScrollView 的大小