wcdb
wcdb copied to clipboard
[WCDB][ERROR]Code:21, Type:SQLite, Tag:0, Op:4, ExtCode:0, Msg:not an error, SQL:PRAGMA synchronous='NORMAL'
The language of WCDB
e.g. Objective-C, Swift or Java
Objective-C
The version of WCDB
e.g. v1.0.5
1.0.6
The platform of WCDB
e.g. iOS, macOS or Android
iOS
The installation of WCDB
e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone
Cocoapods
What's the issue?
it can not create tables in the wcdb.
my code is
[_dataBase createTableAndIndexesOfName:kCDCardTableName withClass:CDCardModel.class];
the console is :
[WCDB][ERROR]Code:21, Type:SQLite, Tag:0, Op:4, ExtCode:0, Msg:not an error, SQL:PRAGMA synchronous='NORMAL', Path:/Users/dongzhao/Library/Developer/CoreSimulator/Devices/7F8A5E17-0F41-46AB-9450-99A3D1283CCC/data/Containers/Data/Application/6EB4D660-2712-43A9-B49E-61E69EADF19F/Documents/MainData/default/message.db
2020-10-21 12:56:08.919570+0800 ChatNote[76250:23001131] Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
2020-10-21 12:56:08.919724+0800 ChatNote[76250:23001131] Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
same error.
https://github.com/Tencent/wcdb/issues/716#issuecomment-984333318 实测有效