Xcode 26 / iOS 26 - XIB incorrectly references "HiraginoKakuGothic.ttc" causing build warnings

Hello,

I'm encountering a persistent issue when building my project with Xcode 26 and iOS 26. The console shows errors related to font file references that don't actually exist in my project.

After investigation, I found that the issue originates from XIB files incorrectly referencing HiraginoKakuGothic.ttc:

<customFonts key="customFonts">
    <array key="HiraginoKakuGothic.ttc">
        <string>HiraginoSans-W3</string>
    </array>
</customFonts>

The problem appears to be triggered when setting UILabel fonts to "ヒラギノ角ゴシック W3 16.0" in Interface Builder, which causes the XIB to reference HiraginoKakuGothic.ttc.

Interestingly, when I create a new project and use the same fonts ("ヒラギノ角ゴシック W3 16.0"), it does NOT automatically reference HiraginoKakuGothic.ttc.

Here's what I've tried:

①Changed both UILabels' fonts to system font

②Verified in XIB Source Code that the .ttc references were gone

③Cleaned Build Folder

④Cleared DerivedData

⑤Restarted Xcode

⑥Set the labels back to "ヒラギノ角ゴシック W3 16.0"

⑦Checked XIB Source Code again - the non-existent .ttc references reappeared

Even if I manually remove the customFonts references from the source code, they get regenerated as soon as I make any font changes in Interface Builder.

I've also noticed that Xcode 16.1 has the same underlying issue, though it doesn't produce the console errors that Xcode 26 does.

This seems to be a long-standing XIB issue, possibly related to reference caching. While new projects aren't affected, existing projects continue to maintain these incorrect references.

My questions:

How can I permanently resolve this issue in my existing project?

What's the potential impact of these incorrect font references?

Is there a way to clean up these cached references without affecting the rest of the project?

Any insights or workarounds would be greatly appreciated.

Thank you.

Xcode 26 / iOS 26 - XIB incorrectly references "HiraginoKakuGothic.ttc" causing build warnings
 
 
Q