线程 1:“+[UIImage systemImageNamed:]: 无法识别的选择器发送到 class 0x111e616e0”

Thread 1: "+[UIImage systemImageNamed:]: unrecognized selector sent to class 0x111e616e0"

线程 1:“+[UIImage systemImageNamed:]:无法识别的选择器已发送至 class0x111e616e0”

在 iOS 12 iphone 6 秒内尝试 运行 我的应用程序时,app delegate 中出现此错误,但它在 iOS 13+ 设备 [=11] 中正常工作=]

The reason behind crash is SFSymbol is only available on iOS 13 and above version.

UIImage(systemName: "") -> It will crash on iOS 12 and below version.

如果你想在 iOS 12 及以下版本中使用 SFsymbol 然后检查这个 URL