Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 694
Lalit Avatar asked Jun 07 '16 09:06

Lalit


1 Answers

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.

like image 143
Confused Avatar answered Sep 24 '22 03:09

Confused