Unable to load persistent store UserDictionary.sqlite

本文详细介绍了在iOS5.1 Simulator中遇到无法加载持久存储文件错误的解决方法,通过还原内容与设置即可修复问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://jordy.easymorse.com/?p=882


最近xcode因版本的不同,造成了诸多的问题,所以统计一些常见的问题,及解决方法

这次问题,是在iOS 5.1 Simulator运行程序报错:

Unable to load persistent store at URL ‘file://localhost/Users/xxx/Library/Application%20Support/iPhone%20Simulator/5.1/Library/Keyboard/UserDictionary.sqlite’ ({ 
    metadata =     { 
        NSPersistenceFrameworkVersion = 407; 
        NSStoreModelVersionHashes =         { 
            UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>; 
        }; 
        NSStoreModelVersionHashesVersion = 3; 
        NSStoreModelVersionIdentifiers =         ( 
            "" 
        ); 
        NSStoreType = SQLite; 
        NSStoreUUID = "43DABF34-7F7E-4FE9-B78D-8AF64292A967"; 
        "_NSAutoVacuumLevel" = 2; 
    }; 
    reason = "The model used to open the store is incompatible with the one used to create the store"; 
})

这个错误的解决方法就是,在ios模拟器–》还原内容与设置  ,然后重新运行程序则不再显示这个报错提示


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值