CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanP

106 阅读1分钟

CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].

  • 解决方法:
  • 创建一个Symbolic Breakpoint(符号断点)调试一下,符号的内容写CTFontLogSystemFontNameRequest然后在去操作app对应的界面就可以定位到了。

Snip20220714_2.png