[iOS 18.2] 控制台报错 Unable to register font
- Dominant language
- C++
- Stars
- 18.5k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
控制台报错:
GSFont: "iconfont" already exists.
GSFontRegisterCGFont() failed 305
[error]WXUtility.m:600, Using iconfont with family name 'iconfont' is prohibited.
[error]WXUtility.m:602, Unable to register font, {
localSrc = "file:///Users/hushaolu/Library/Developer/CoreSimulator/Devices/A1F8BDB1-4576-4417-B154-14630F957CBD/data/Containers/Data/Application/EEBC00EF-75B0-4D69-8A41-69B97FCB9BA4/Library/Caches/wxdownload/344b0ebebf505ddee7196fdda67cba6c";
tempSrc = "https://at.alicdn.com/t/font_520368_r89ekv69euahsemi.ttf";
}.
## Environment
* Device: [iPhone 16 pro 模拟器]
* OS: [iOS 18.2]
* Version [weexsdk 0.30.2]
* Xcode 16.2
* Weex-cli. 2.0.0-beta.32
Contributor guide
Research direction
Start by reproducing the report with weexsdk 0.30.2, Weex CLI 2.0.0-beta.32, Xcode 16.2, and an iPhone 16 Pro simulator on iOS 18.2. Trace the iconfont registration path associated with WXUtility.m and the reported font URL; done means the duplicate-font and prohibited-family errors no longer occur, or the cause and required scope are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100