gpt4 book ai didi

iphone - NSInternalInconsistencyException - 无法在 bundle 中加载 NIB

转载 作者:行者123 更新时间:2023-11-29 04:38:06 25 4
gpt4 key购买 nike

我遇到以下异常:

 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/57C8544B-05F6-445D-80A9-FAC9672F278B/MyApp.app> (loaded)' with name 'MyNibName''

我尝试了 stackoverflow 类似问题中建议的许多解决方案,但仍然遇到此问题。

此问题与加载地址簿的特定 xib 文件有关。

这种情况仅发生在 iPhone 上,而不发生在 iPad 和模拟器上。

我还尝试删除现有的 xib 文件并创建一个新文件,但没有成功。

With few attempts of testing, I found that the file works fine for certain number of attempts and then starts giving above error only on iPhone.

请帮忙。

提前致谢。

最佳答案

经过长时间的调试和测试,终于找到了问题所在。问题不在于 NIB 文件,而在于我已声明并正在填充但未使用它们的两个 nsmutablearrays。我把它们去掉然后就成功了。这对我来说有点奇怪。

关于iphone - NSInternalInconsistencyException - 无法在 bundle 中加载 NIB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10792114/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com