gpt4 book ai didi

ios - NSBundle.mainBundle() 返回 nil

转载 作者:行者123 更新时间:2023-12-01 18:08:49 28 4
gpt4 key购买 nike

我刚刚重新安装了我的 mac 和 Xcode。然后[NSBundle mainBundle]由于某种我不知道的原因,总是返回 nil。

非常感谢你!

这是我的调试 Pane 的屏幕截图:

enter image description here

最佳答案

您已经在 Release模式下构建了代码。在 Release模式下,调试器是不可靠的。变量可以被优化掉。切换到 Debug模式,然后重试。

关于ios - NSBundle.mainBundle() 返回 nil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35881082/

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