奇怪的新iOS 7错误:来自DB/ForceShrinkPersistentStore_NoLock的接收器

avu*_*ess 41 iphone xcode ios ios7

美好的一天.

我有一个使用SSL的大量网络连接的项目.这个项目运行良好,在iOS 5和6上没有错误.但是对于新的iOS 7,我不断得到这两个错误:

ERROR: unable to get the receiver data from the DB

ForceShrinkPersistentStore_NoLock -delete- We do not have a BLOB or TEXT column type.  Instead, we have 5.
Run Code Online (Sandbox Code Playgroud)

他们没有任何关联,我确实连续几周获得第一个,然后我也得到了第二个.

它们在我的应用程序启动时收到,此时我发送几个HTTP POST并处理接收到的数据.我无法察觉这些错误来自哪里.

如果我能理解它们,我就能找到它们.任何人都知道他们的意思或者他们会导致什么情况?

小智 32

我今天也遇到了你的第一个问题:

ERROR: unable to get the receiver data from the DB
Run Code Online (Sandbox Code Playgroud)

我不知道原因(可能某种程度上缓存已损坏)但删除所有模拟器的Applications文件夹使我的问题消失了.

rm -rf ~/Library/Application Support/iPhone Simulator/7.0-64/Applications/*
Run Code Online (Sandbox Code Playgroud)

  • 从模拟器删除所有应用程序也适合我 (5认同)
  • 这可能是显而易见的,但如果您还在实际的iPhone上进行调试,请删除该应用并重新运行它. (4认同)