An open API service indexing awesome lists of open source software.

https://github.com/russell-archer/infoplistmove

Resolving Xcode issues when moving Info.plist out of the project root Folder
https://github.com/russell-archer/infoplistmove

xcode

Last synced: about 1 month ago
JSON representation

Resolving Xcode issues when moving Info.plist out of the project root Folder

Awesome Lists containing this project

README

          

# Xcode Move Info.plist to Support Folder
## Resolving issues when moving Info.plist out of the project root

With a large project it's often useful to move your Info.plist file into a "support" folder, along with other
files like storyboards, etc.:

![](./readme-assets/img1.jpg)

Prior to Xcode 11 you could just create a Group, move the file and then adjust the full path as necessary
by tapping the folder icon in the File Inspector view of Info.plist:

![](./readme-assets/img2.jpg)

However, with Xcode 11 this no longer works. The following shows how to workaround this issue.

___

## Workaround
Create a new **Group** (with folder) and move **Info.plist** into it:

![](./readme-assets/img3.jpg)

At this point if you rebuild you'll get an error:

![](./readme-assets/img4.jpg)

Select **Info.plist** and then change the **Location** in **File Inspector** from *Relative to Group*
to **Relative to Project**:

![](./readme-assets/img5.jpg)

You'll still get an error if you rebuild, even though the **Location** and **Full Path** correctly
show the location to Info.plist.

Open your project's **Build Settings** and search for **Info.plist**:

![](./readme-assets/img6.jpg)

Change the location of the file to the correct *project-relative* path:

![](./readme-assets/img7.jpg)

If you now rebuild you’ll have no errors.