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
- Host: GitHub
- URL: https://github.com/russell-archer/infoplistmove
- Owner: russell-archer
- Created: 2020-05-09T14:52:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T15:02:15.000Z (almost 6 years ago)
- Last Synced: 2025-08-29T18:49:32.169Z (7 months ago)
- Topics: xcode
- Size: 954 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.:

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:

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:

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

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

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**:

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

If you now rebuild you’ll have no errors.