I created a spriteKit Game and later on changed the name of my Project within Xcode. From then on, my .pch and .plist files are red. I will show you an image:
The app runs fine and builds correctly. I'm not sure if this is a bad thing so that's why I asked. Please tell me how to fix this.
If files marked in red, they are "not found" by Xcode. You either moved or deleted them within File Finder, outside Xcode. Delete the red marked files within XCode, then add them again to XCode.
It means they are not found on disk where your project believes they should be. Control-click and Show In Finder to see the folder location to locate the file and drag it back in to the project, and delete the bad reference.
Xcode shows only the . app built for the device in the Products folder. So if you clean the product and then build for Simulator, it will still be red. If you build for the device, Xcode will show it and "show in finder" also works.
The Info. plist file contains critical information about the configuration of an iOS mobile app—such as iOS versions that are supported and device compatibility—which the operating system uses to interact with the app. This file is automatically created when the mobile app is compiled.
One can open the File Inspector to check a file's absolute path to make sure it is correct.
For team members collaborating via version controls like git
, also make sure the plist's path is not pushed up to repository as absolute path including e.g. the user's mac usernames.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With