阅读这篇文章PouchDB 与 Couchbase Lite - 性能评估后,我很高兴尝试运行代码https://github.com/zeMirco/pouchdb-vs-couchbase
该应用程序一开始没有运行。我删除了平台并重建:
cordova platform add ios
cordova build ios
然后我使用 iPad Retina 64 位模拟器运行该应用程序。我注意到控制台输出了以下内容。
2014-05-30 14:38:08.518 HelloCordova[50407:60b] Multi-tasking -> Device: YES, App: YES
2014-05-30 14:38:08.526 HelloCordova[50407:60b] Unlimited access to network resources
2014-05-30 14:38:08.532 HelloCordova[50407:60b]
Started backup to iCloud! Please be careful.
Your application might rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines"
You could find it at the following address https://developer.apple.com/icloud/documentation/data-storage/ .
2014-05-30 14:38:08.594 HelloCordova[50407:60b] CDVPlugin class CBLite (pluginName: cblite) does not exist.
2014-05-30 14:38:08.594 HelloCordova[50407:60b] [CDVTimer][cblite] 0.567973ms
2014-05-30 14:38:08.595 HelloCordova[50407:60b] [CDVTimer][TotalPluginStartup] 1.537025ms
2014-05-30 14:38:09.162 HelloCordova[50407:60b] Resetting plugins due to page load.
2014-05-30 14:38:09.295 HelloCordova[50407:60b] Finished load of: file:///Users/jshultz/Library/Application%20Support/iPhone%20Simulator/7.1-64/Applications/FDA667F2-50BD-48D0-836C-D42F358F6A3F/HelloCordova.app/www/index.html
2014-05-30 14:38:09.408 HelloCordova[50407:60b] CDVPlugin class CBLite (pluginName: CBLite) does not exist.
2014-05-30 14:38:09.409 HelloCordova[50407:60b] ERROR: Plugin 'CBLite' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-05-30 14:38:09.409 HelloCordova[50407:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"CBLite1387911234",
"CBLite",
"getURL",
[
]
]
我认为加载我尝试重新安装的 Couchbase lite 插件时出错,Cordova 报告它已经安装。
$ cordova plugin add com.couchbase.lite.phonegap
Fetching plugin "com.couchbase.lite.phonegap" via plugin registry
Plugin "com.couchbase.lite.phonegap" already installed on ios.