Xcode + Time Machine(或 Finder 副本)= NSInternalInconsistencyException
使用 Finder 复制我的项目后,iPhone Simulator 崩溃并给出 NSInternalInconsistencyException 错误。我随后在制作副本之前使用 Time Machine 恢复项目,但仍然收到 NSInternalInconsistencyException 错误。
这是一个小作业,重新创建它不会是世界末日。我最担心的是我不了解 Xcode 工作原理的一些基本知识。任何照明将不胜感激。
更新
Apple 发现了该错误。 iPhone 模拟器会保留应用程序的上次运行版本,并且不会将其替换为运行和构建中的复制/时间机器恢复版本。从 iPhone 模拟器中删除该应用程序并执行新的运行和构建可以解决该问题。
After using Finder to make a copy of my project, the iPhone Simulator crashes giving me an NSInternalInconsistencyException error. I subsequently used Time Machine to restore the project before I made the copy, but am still getting the NSInternalInconsistencyException error.
This is a small homework assignment and re-creating it wouldn't be the end of the world. My big concern is that I don't understand something fundamental about how Xcode is working. Any illumination would be greatly appreciated.
Update
Apple identified the bug. The iPhone Simulator keeps the last-run version of the app onboard, and doesn't replace it with the copied/Time-Machine-Restored version that is in Run-and-Build. Deleting the app from the iPhone Simulator and performing a new Run-and-Build resolves the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来像是一个错误。您的源代码文件应该没问题,因此希望创建一个新项目并添加这些文件并不是什么大问题,以便您可以继续工作。您可能还想向 Apple 报告该问题,特别是如果您可以使其再次发生的话。
Sounds like a bug. Your source code files should be fine, so hopefully it's not a big deal to just create a new project and add those files so that you can get back to work. You might also want to report the issue to Apple, especially if you can make it happen again.