Search code examples
iosswiftiphonexcodeios-simulator

Why is my app so different on my device vs. the simulator?


This what my app looks like running on the simulator (iPhone 8 Plus):

enter image description here

And this what it looks like running on my device (iPhone 7 Plus):

enter image description here

Why does it look like so much is missing from the app when I run it on my device? Also, a lot of the buttons/actions do not work. My data is sourced from Firestore and I am using Firebase for my app. The iOS Deployment Target is 14.4, which is accurate for my phone. I'm wondering if this could have something to do with my "Copy Bundle Resources" as this has caused me some issues in the past.

enter image description here

Any help/guidance on how I can troubleshoot this is much appreciated!


Solution

  • It seems like, You haven't provided the support for the Dark mode. To fix this issue, Either you have to give support for dark mode or disable dark mode by adding the below key in the info.plist file. It will fix your issue.

    <key>UIUserInterfaceStyle</key>
    <string>Light</string>