Error: The file “Info.plist” couldn’t be opened because there is no such file

Lalit picture Lalit · Jun 7, 2016 · Viewed 18.4k times · Source

I have move my project from another machine with latest Xcode installed in it. But now when i'm running project it giving me error as

Info.plist:0: error: reading data: The file “Info.plist” couldn’t be opened because there is no such file.

Previously project running with no issue but now on new system project has error. Previous version was Xcode 7.3.

Answer

Confused picture Confused · Nov 12, 2017

This error happens when the system can not locate the info.plist file from your file hierarchy.

Consider this situation: I moved the info.plist file to the group "Others" like this..

enter image description here

Goto Target - Tap Build Settings - Find "info.plist"

enter image description here

Here, the system will search the info.plist in AddModifyDelete folder. But the actual file is under AddModifyDelete/Others. So, change it to AddModifyDelete/Others/info.plist

Now it should work!!

Note: This is also applicable to entitlements file. We should define the right path for both info.plist & entitlements file to avoid this error.