I’m utilizing Xcode 14.2
and constructing a SwiftUI utility with 4 customized fonts. The fonts have been beforehand loaded and usable in previews, however they’re now oddly lacking.
The next issues are true:
- The fonts are listed as references within the file navigator. I’ve eliminated and re-added them.
- For every font file, TargetMembership is checked / true for the one goal within the app
- The goal’s “Information” tab comprises
"Fonts supplied by the appliance"
with all 4 fonts listed as array components and their filenames spelled accurately - The goal’s Construct Phases tab /
Copy bundle assets
lists all 4 fonts — along with a pair photographs which are showing accurately - The entitlements file contains
"Use fonts"
and"Set up fonts"
- Code that was accurately working earlier has not been modified; it’s utilizing the proper font names
- The next code does NOT record the customized fonts:
.onAppear(){
for household: String in UIFont.familyNames
{
print(household)
for title: String in
UIFont.fontNames(forFamilyName: household)
{
print("== (title)")
}
}
- I’ve tried to view the construct output however I can not decide for certain what’s in or out – every part’s both bundled into the 14 GB(!) executable or in a
.automobile
database.
What else can I do to repair this? How can I maintain from having to re-address this each couple weeks?