I am using Xcode 14.2
and building a SwiftUI application with 4 custom fonts. The fonts were previously loaded and usable in previews, but they are now oddly missing.
The following things are true:
"Fonts provided by the application"
with all 4 fonts listed as array elements and their filenames spelled correctlyCopy bundle resources
lists all 4 fonts -- in addition to a couple images that are appearing correctly"Use fonts"
and "Install fonts"
.onAppear(){
for family: String in UIFont.familyNames
{
print(family)
for name: String in
UIFont.fontNames(forFamilyName: family)
{
print("== \(name)")
}
}
.car
database.What else can I do to fix this? How can I keep from having to re-address this every couple weeks?
So, I asked ChatGPT. It's first suggestion was this:
Clean and rebuild the project: Sometimes Xcode can have caching issues. Try cleaning your project by selecting "Product" from the Xcode menu, then choose "Clean Build Folder." After cleaning, rebuild your project by selecting "Product" and then "Build."
Ha! Great - the three-fingered solute! What is this Win95?
The fonts appeared!! Yay!
Wow, that's 2 days of OCD hassle just lost. This never wouldda happened when they were NeXT...