Info.plist Utility Error: “Info.plist couldn't

2019-02-01 03:34发布

I'm running into what seems to be common error, in that Xcode can't seem to find my 'Info.plist' file.

I've checked the answers to these two StackOverflow questions (Could not read from Info.plist and Objective C/Xcode error: The file “Info.plist” couldn’t be opened because there is no such file)...I am using a relative path, and the plist file is in the correct absolute location. The type and location are correct as shown in the image below:

plist path

My biggest concern is that this is now happening on multiple projects, including one I ran successfully just a few hours ago! Does anyone know how to solve this???

EDIT I've also tried reinstalling XCODE and replacing the plist file. Xcode still can't find 'info.plist'.

NOTE I wanted to add that this was for Xcode 6.2.X (I can't remember which version number exactly, but it was pre-Xcode 6.3.X).

23条回答
▲ chillily
2楼-- · 2019-02-01 03:54

First you need to check in your project folder whether info.plist is there or not. If not then you need to copy info.plist from any other application into your project folder and add file in xcode. It will solve your problem.

查看更多
Rolldiameter
3楼-- · 2019-02-01 03:56

I also face the similar issue in xcode 7.0 but none of the above Solutions Worked for me, at last I get a chance to solved this issue

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

See the screenshot also

enter image description here

Enjoy

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-02-01 03:57

Search "info.plist" using ctrl+sht+f in your project.

Tap on the results and you will find it as a field under Build Settings.

Ensure that it contains the correct path to your info.plist file as in the project hierarchy.

查看更多
贼婆χ
5楼-- · 2019-02-01 03:57

For me, the anwser for this issue was:

1.Turn off Xcode

2.Go to ./Users/You/Library/Developer/Xcode/DerivedData

3.Delete everything from this folder

4.Run Xcode

5.Build&Clean

Xcode version: 6.4 (6E35b)

查看更多
等我变得足够好
6楼-- · 2019-02-01 03:58

None of above-mentioned or other solutions did work for me. I found a solution after a couple of days searching.

ionic cordova platform remove ios
ionic cordova platform add ios

The reason I removed and added platform was I accidentally deleted some files under the ios folder. So, it brought the necessary files.

查看更多
▲ chillily
7楼-- · 2019-02-01 04:00

One of the most weird issue that I have faced. In my case I do not have any file missing, I cleared the derived data, cleared the modular cache, cleaned the project multiple times, restarted my xcode, but nothing worked for me. At the end I restarted my computer with the only hope to resolve this issue which surprisingly worked for me!!!

查看更多
登录 后发表回答