Search code examples
iosswiftuilabeltestflightuialertviewcontroller

UILabel and Text invisible after archive and upload to testflight


I have been stuck on a problem since last week. The thing is when I build on my phone/simulator, my app works well shows like the first picture with label and texts showing perfectly. But, when I archive and upload to testFlight or exports, it shows like the second picture(No visible Text/UILabel anywhere in the app). Things I’ve tried:

  1. custom font: I was able to override the systemfont successfully but still faced with the same problem after upload

  2. accessibility inspector: I was able to read out the texts in the label meaning they are there but not showing.

This is the correct way for the app to show. The text and labels should be visible:

This is the correct way for the app to show, the text and labels should be visible

This is how it is showing when i upload and install from Testflight. All text and labels blank (even UIAlertViewController):

This is how it is showing when i upload and install from testflight all text and labels blank (even UIAlertViewController)


Solution

  • Is it possible to have your dark mode on on the device you install the build? And maybe you used custom colors within the app so it only reflects in the text colors, which may be system.

    E.g.: you used custom white for your background color (not system white) and the text was system black. After changing to dark mode, the text will turn white, but the background will stay white because it's custom