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

好久不见. 提交于 2020-02-01 04:46:24

问题


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.


回答1:


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




回答2:


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..

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

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.




回答3:


Error: The file “Info.plist” couldn’t be opened because there is no such file. This error occurs when you change the location of the Info.plist file. To fix this issue, follow the below steps.

  1. Go to the navigator pane.
  2. Click on error symbol located near to the project name.
  3. It will open the analyze screen.
  4. Click on Choose Info.plist file.
  5. Select Info.plist and click on choose button.
  6. Click on product option and clean the project.



回答4:


Or you can try

Maybe your plist has incorrect format, because of a conflict from git pull, so you should open your .plist file with text editor and resolve the conflict, and then reopen your project with Xcode, everything is OK.




回答5:


use these commands in terminal 1.pod deintegrate 2.pod clean 3.pod install



来源:https://stackoverflow.com/questions/37675044/error-the-file-info-plist-couldn-t-be-opened-because-there-is-no-such-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!