ios - Xcode 运行时错误无法加载 "_IBBrokenImage_"

标签 ios swift xcode uiviewcontroller

我正在开发具有多个 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/

相关文章:

iphone - 如何在 iOS 上使用 AVMutableComposition 和 CALayers 将多个 CALayer 添加到视频文件

ios - swift 使用自定义字体时意外崩溃

swift - 将带有 IBAction 的 View 添加到 NSStackView 会导致应用程序崩溃

ios - 如何从 AppStore 中删除对 iPad 的支持

ios - 无法在 UIViewController 中为 UIBarButtonItem 创建 IBOutlet

ios - 我可以返回两个数组吗?

ios - UIWebView 如何用于自动抓取需要身份验证的页面?

ios - 使用 Date UIPicker 和 Normal Picker 设置文本字段时出错,我尝试了很多东西但出现错误

ios - 如何使用不在我的帐户中的配置文件来分发应用程序?

iphone - 检测 iPhone 应用程序中的 UINavigationBar subview 类型