用Xcode9适配完iPhoneX后, SVProgressHUD在全局断点抛出异常.
if ([UIFont respondsToSelector:@selector(preferredFontForTextStyle:)]) {
_font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];
} else {
_font = [UIFont systemFontOfSize:14.0f];
}
回滚代码发现了问题, 适配完Xcode9修改好Builds for, 就会出现那个断点.
大版本升级总是有莫名其妙的问题, 然后Xcode - Product - clean 恢复正常了.

网友评论