因为 iconfont.woff 被 App Store 拒审

267 阅读1分钟

由于一次需求在App中加了一个Widget,然后在提审时就收到了被拒的邮件,说有2个地方发现了不支持的字体。

invalid font - There was an error validating the font at '**.app/**********.woff'. Font not supported by platform.

invalid font - There was an error validating the font at '**.app/Plugins/Widget.appex/**********.woff'. Font not supported by platform.

由于以前工程中就有这个.woff文件,所以起初以为是Widget引用了这个.woff文件所在的模块导致的问题。

但是仔细看了这个拒审邮件,其实是说2个地方都有问题的。那岂不是说如果加了Widget的话,工程中就不可以出现.woff的文件。

盲猜是Apple怕开发者在 Widget 中使用Apple自身不可控的字体。

最后换成了Apple支持的 tff 之后解决了此问题。

Apple官方目前支持的有 tffotf 两种