I'm having this issue as well on iOS 17.2.1 and Xcode 15.2.0. Certain fonts (Font Awesome 5 Pro Light in my case) will randomly return nil from UIFont(fontWithName:_,size:_). Even when the font name is returned through UIFont.fontNames(forFamilyName:_) The strange thing is that I can reliably reproduce it, however it doesn't always happen. In other words, I can navigate to a screen that uses it just fine, but if I take a different route through the app to get there, then it stops working.
Post
Replies
Boosts
Views
Activity
It seems like you can work around this issue by disabling Metal API Validation checking in the Scheme Diagnostics window. I noticed that it wouldn't crash when I wasn't connected to the debugger, so I think this is an issue of Metal API sanity checking. Since it seems to throw the error from MapKit code, there's not much else we can do. (I ruled out concurrency problems by passing in the main queue, and also only calling it from the main actor--both of which continued to crash.) Once I disabled the Metal API Validation, I stopped getting crashes while hooked up to Xcode.
@navoshta Thank you so much for pointing out Secure ShellFish. I tried all the mainstream apps, such as Google Drive, Dropbox, Box, OneDrive, etc, as well as Termius, and none of them worked. However, for some reason Secure ShellFish DOES work. I wonder what makes them different. Is there an API or something that all of these apps have failed to implement? Part of me hoped it was just an iOS issue so that it could be fixed in one location. This is interesting...
Try sticking "NSSecureUnarchiveFromDataTransformerName" into the "Transformer" field of the attribute configuration.