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

19,132

Solution 1

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.

Solution 2

Please try either of the two ways :-

First Try :

The solution for this particular instance of the error was “Info.plist couldn't be opened because there is no such file” was that I had deleted all of the files in the "Project Tests" folder, but was still had "Project Tests" listed under my targets. After deleting the "tests" target, the project built successfully.

Last Try :

1) Go to :- App Target 2) See the Identify ---and choose the Plist

Share:
19,132
Lalit
Author by

Lalit

Updated on June 06, 2022

Comments

  • Lalit
    Lalit about 2 years

    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.

    • vadian
      vadian about 8 years
      Check the path of Info.plist in Build Settings. It's a relative path and probably doesn't match the new location.
    • Sneha
      Sneha about 8 years
      find info.plist file & Remove reference from project & add that file again to project.. This worked for me...
    • Lalit
      Lalit about 8 years
      Tried both way but no success yet...
    • nivritgupta
      nivritgupta almost 6 years
      duplicate question see the answer here stackoverflow.com/questions/26189404/…
  • Ankit
    Ankit about 8 years
    Hey lalit , is your previous machine is available from where you shifted your code.If it is available copy the plist from that code and remove the reference from here and paste it.
  • Ankit
    Ankit about 8 years
    You're welcome. If my answer helped you then vote me up.
  • Confused
    Confused almost 6 years
    @Thor Welcome :)