我按照pouchDB site上引用的教程进行操作。但是,每当在模拟器上测试我的应用程序时,我一直都会sqlite_plugin: false
。
当我删除ios平台并重新添加它并通过我的ionic build ios
时,我收到了几个构建警告。我一直在搜索,但找不到更多关于这些的信息:
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:32015:9: warning: 'gethostuuid' is deprecated: first deprecated in iOS 5.0 - gethostuuid() is no longer supported [-Wdeprecated-declarations]
if( gethostuuid(pHostID, &timeout) ){
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:32003:12: note: 'gethostuuid' has been explicitly marked deprecated here
extern int gethostuuid(uuid_t id, const struct timespec *wait);
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:8970:26: warning: unused variable 'sqlite3one' [-Wunused-const-variable]
SQLITE_PRIVATE const int sqlite3one = 1;
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:12934:21: warning: unused function 'sqlite3BenignMallocHooks' [-Wunused-function]
SQLITE_PRIVATE void sqlite3BenignMallocHooks(void (*)(void), void (*)(void));
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:13083:20: warning: unused function 'sqlite3BitvecBuiltinTest' [-Wunused-function]
SQLITE_PRIVATE int sqlite3BitvecBuiltinTest(int,int*);
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:13187:21: warning: unused function 'sqlite3PrngSaveState' [-Wunused-function]
SQLITE_PRIVATE void sqlite3PrngSaveState(void);
^
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/sqlite3.c:13188:21: warning: unused function 'sqlite3PrngRestoreState' [-Wunused-function]
SQLITE_PRIVATE void sqlite3PrngRestoreState(void);
^
6 warnings generated.
以及稍后:
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/SQLitePlugin.m:47:17: warning: method definition for 'getBlobAsBase64String:withlength:' not found [-Wincomplete-implementation]
@implementation SQLitePlugin
^
In file included from /Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/SQLitePlugin.m:9:
/Users/Milkmusket/Documents/tarot/platforms/ios/Golden Thread Tarot/Plugins/io.litehelpers.cordova.sqliteStorage/SQLitePlugin.h:55:1: note: method 'getBlobAsBase64String:withlength:' declared here
+(NSString*)getBlobAsBase64String:(const char*) blob_chars
^
1 warning generated.
这个问题在于,它显然适用于帮助我测试的另一个人的计算机。拉出我的头发试图解决这个问题。提前谢谢。