How to change or set your Info.plist location or path?
Before Xcode 11, we can easily set our Info.plist path with the help of Identity Section
under the General Tab
of Project's Settings whenever you change or move your Info.plist
file to another folder within your project structure.
You can’t do that now with the latest Xcode. Apple decided to remove that very helpful button for us so that we can waste more time setting the path of our Info.plist
😝
So for people like me who are obsessed with order and arrangement of files within the project, we tend to put our Info.plist
into a folder like "Supporting Files". By doing so, your project will get an error saying your Info.plist
is nowhere to be found. To fix that problem what you can do is..
Click your Info.plist
and go to your File Inspector
. On Location
row, change it to Relative to Project
so you can get the path within your project and COPY that.
Now go to yourBuild Settings and find the Info.plist File and paste the new path of your Info.plist and that should solve the problem. 😆