我正在开发具有多个 View Controller 的应用程序(Xcode 11.4、iOS 13)。在模拟器或设备上运行时,当我导航到特定的 VC 时,调试器会发出:
"`Could not load the "_IBBrokenImage_" image referenced from a nib in the bundle with identifier ...`"
这个特定的 VC 没有任何图像,只有按钮、标签和 UITable 中的文本。它不会触发标准的 Swift 或异常断点。有没有特定的方法 iOS 用来拉图像资源,我可能会尝试用它来捕获它?或者,是否有不同的方法来查找被投诉的问题?
谢谢!
最佳答案
当我更新到 Xcode 11.4 时,这发生在我身上。出于某种原因,我的 UIBarButtonItem 的图像被设置为 Unkown Image
在 Storyboard中。我只需要再次初始化图像。
关于ios - Xcode 运行时错误无法加载 "_IBBrokenImage_",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60975333/