Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not open db file #2

Closed
WiitterSimithYU opened this issue Oct 11, 2017 · 4 comments
Closed

can not open db file #2

WiitterSimithYU opened this issue Oct 11, 2017 · 4 comments

Comments

@WiitterSimithYU
Copy link

can not open db file ios 10.3.3

@GIKICoder
Copy link
Owner

是demo 中的db 打不开么? 我测试了一下. 10.3是可以打开的/

@WiitterSimithYU
Copy link
Author

2017-10-11 16:54:03.110377+0800 GDataBaseExample[4698:873185] error opening!: 14
2017-10-11 16:54:03.110962+0800 GDataBaseExample[4698:873185] error opening!: 14
2017-10-11 16:54:03.111404+0800 GDataBaseExample[4698:873185] Could not create database queue for path /var/mobile/Containers/Data/Application/745AF971-DB0C-4E99-9E32-A86D81DFB57D/DocumentsGDATA.db
2017-10-11 16:54:03.111561+0800
这个是报错信息,,,FMDB返回的 手机是5s

@WiitterSimithYU
Copy link
Author

  • (void)connect{

    if (!_dataBase) {
    _dataBase = [FMDatabase databaseWithPath:self.dbFile];
    }

    if (![_dataBase open]) {
    NSAssert(NO, @"can not open db file");
    } else {
    _isExist = YES;
    }
    }

@GIKICoder
Copy link
Owner

身边没有10.3系统的手机. 用模拟器看了一下也没问题..看样子是缓存文件夹有问题. 卸载重新run 一下试试.
http://blog.csdn.net/chinaofmelon/article/details/45419517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants