Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode runtime error Could not load the "_IBBrokenImage_"

I am working on an app (Xcode 11.4, iOS 13) with several view controllers. While running on simulator or device, when I navigate to a specific VC, the debugger emits a:

"`Could not load the "_IBBrokenImage_" image referenced from a nib in the bundle with identifier ...`" 

This particular VC does not have any images, just text in buttons, labels and a UITable. It does not trigger standard Swift or Exception breakpoints. Is there a specific Method iOS uses to pull image resources that I might try to trap this with? Alternatively, is there a different approach to finding the issue being complained about? Thanks!

like image 609
BlueskyMed Avatar asked Oct 19 '25 18:10

BlueskyMed


2 Answers

This happened to me when I updated to Xcode 11.4. For some reason, my UIBarButtonItem's image was set as Unkown Image in storyboard. I just had to initialize the image again.

like image 87
grantespo Avatar answered Oct 22 '25 07:10

grantespo


Here is the answer (and if is due to buggy IB in Xcode 11.4): Re-examination of the XML of the storyboard file revealed that Xcode had added, on its own, a variation for RC (landscape) orientation. I didn't do it! The variation image was a random string, basically unassigned. Also, the IB frequently complains that it can not compile by XML from time to time. I think a new release of Xcode would be helpful!

like image 42
BlueskyMed Avatar answered Oct 22 '25 07:10

BlueskyMed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!