Info.plist Utility Error: "Info.plist couldn't be opened because there is no such file"
Asked Answered
N

27

81

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

Nab answered 4/10, 2014 at 3:46 Comment(8)
see the answer here #6146416 hopefully this helps for youJape
Hey @MinnesotaSteve, I did try that, but still keep getting the error..it looks to me as if my path is set correctly in the build settings :/Nab
crap - I'll think of something else. How annoying.Jape
Thanks @MinnesotaSteve! The weirdest part is that it's happening on a project that I didn't rename at all...Nab
i tried few things buccaneer create something as annoying as you have. All I can think of is what you already know. Reinstall XCODE.Jape
@MinnesotaSteve, I reinstalled XCODE, and still got the same error when I opened the project again :/Nab
I think you fixed XCODE but not the project. You will likely have to recreate the project and drag all your files from the old one to the new one.Jape
@MinnesotaSteve it looks that way...the only projects that aren't working are Swift ones, but I haven't been able to figure out if that has anything to do with the issue or notNab
N
50

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.

Nab answered 5/10, 2014 at 18:6 Comment(2)
It worked when I deleted the missing Test framework from the Frameworks folder group.Chlorohydrin
This didn't work in XCode 6.3. Finally I had to manually create an empty plist file under the directory shown in the error message. The empty plist file will have: <?xml version="1.0"?><plist version="1.0"><dict/></plist>Pahang
S
132

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

Sore answered 29/9, 2015 at 18:3 Comment(11)
Have the same problem, and not this button !Sty
@Zl3n will you please share some more infoSore
When removing everything in App > Build Settings > Packaging > Info.plist File, I now get this message in General tab ; Xcode failed to parse the contents of the Info.plistSty
@Zl3n i am facing this issue using Xcode 7 and none of the above answer help me to solve this issue , after that i am self able to solve this issue ,maybe choose info.plist Button is available on xcode 7 onlySore
@Zl3n this answer will help you #19642602Sore
Let us continue this discussion in chat.Sore
I tried that and it says "No Filter Results" when I click the button.Bimonthly
If you move the plist file out of the head folder of the program Xcode can't find it. Highlight your project in the project manager screen, select your project under target, have basic selected then in the search bar just type plist. You'll see info.plist file under packaging just add the correct folder structure there. I really think Xcode should be smart enough to overwrite that value for you. Honestly. its 2017 Apple come on now. This is probably a bug though, I sure I have moved the plist before and never had to set this value explicitly. @DonaldDuckSilvan
this fixed it for me! Thank you!Zug
it's showing xcode failed to parse the contents of the info.plistEpileptic
@WahabKhanJadon check this link #19642602Sore
N
50

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.

Nab answered 5/10, 2014 at 18:6 Comment(2)
It worked when I deleted the missing Test framework from the Frameworks folder group.Chlorohydrin
This didn't work in XCode 6.3. Finally I had to manually create an empty plist file under the directory shown in the error message. The empty plist file will have: <?xml version="1.0"?><plist version="1.0"><dict/></plist>Pahang
Y
30

I faced similar kind of situation when I updated my XCode to 6.1. My project contained Info.plist but I got this error: "The file “Info.plist” couldn’t be opened because there is no such file." Therefore, I looked up to the targets of my application which were: "App" & "AppTests". I checked for the 'Packaging' field in 'Build Settings' tab.

Target: 'App' -> 'Build Settings' -> 'Packaging' -> 'Info.plist file(field)' - the location should be correct

Target: 'AppTests' -> 'Build Settings' -> 'Packaging' -> 'Info.plist file(field)' - the location must be something like this: 'AppTests/Info.plist'.Keep this field empty.Delete the location.

It seems that Apple is checking this location by default for finding Info.plist. Clean & Build your project. It will work. Worked for me.

Yucca answered 14/11, 2014 at 8:1 Comment(2)
@SathiReddy: ThanksYucca
Ran into this issue when renaming folder containing the info.plist file. This clarified the issue.Anastassia
P
26

XCode 10 and 11

I know it's been a while, but I faced the same issue today, and the answers I've found weren't very clear for me, so I decided to make an instruction with screenshots.

1) First, open the right-hand panel in xcode and click on your .plist file:

enter image description here

2) Second, choose Relative to project location on the right-hand panel and copy the link just below it:

enter image description here

3) Third, go to the main project settings, choose your target and click on the Build settings tab:

enter image description here

4) And finally, type Info.plist in the search field, double-click on the existing path and paste the link you have copied earlier:

enter image description here

In the end, clean the project Shift + Cmd + K and re-run.

Pascia answered 5/10, 2018 at 18:41 Comment(1)
Can use a relative location pattern such at $(SRCROOT)/ProjectName/App/SomeFolder/Info.plistAblation
W
7

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)

Wilbanks answered 11/9, 2015 at 9:37 Comment(0)
N
7

In my case i was edited my xcode project folder name so that this is happened after changing folder's new name(Project -> Targets -> Build settings -> Packaging -> Info.plist name) then working fine.

Noh answered 28/2, 2018 at 10:18 Comment(0)
B
4

go to targets. right click on the test target. yourProjectTests and delete it

Balanchine answered 13/1, 2015 at 12:9 Comment(0)
A
4

if you change info.plist location from project to a folder inside the app then you will get this error i was facing same error and error resolved by this way

 Select your app and from Targets yourApp > Build Settings > Packaging > 
 Info.Plist and change that path
Alverta answered 14/2, 2020 at 6:49 Comment(1)
Build Settings key: INFOPLIST_FILE. An exmple pattern would be $(SRCROOT)/ProjectName/App/SomeFolder/Info.plistAblation
S
2

As answered by @narner (answer marked as correct), yes it can make code work. But here is something better to solve the problem.

My suggestion is that instead of delete tests targets, better if we change the path of info.plist under tests target.

Simple steps:-

In project, click on the project file -> ProjectNameTests(under targets) ->Build settings->Packaging->Info.plist Here you change the path of file.

Stomatitis answered 27/8, 2015 at 7:11 Comment(0)
D
2

Relocate the files by double clicking on this icon:

enter image description here

I had this issue too for the past couple hours. I had downloaded my github project from an earlier version. the search paths seem to have gotten confused and needed to be explicitly told where the files were located.

Derte answered 27/6, 2017 at 6:27 Comment(0)
A
1

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

Alameda answered 27/1, 2015 at 10:6 Comment(0)
G
1

This is my first post, but I have been a dedicated student here for a while now.

For me the problem was a framework that I added. I know because when adding it, I got the problem and I test constantly during development on the simulator and I opened the simulator log and found the info.plist problem was solely with the framework I added. To double check, I deleted the framework and all references to it and tried building to the simulator again and everything went back to normal. So, after I tried everything that I read here and in other posts and not being able to fix the problem, I felt like throwing in the towel, but on my last attempt I did the following and it worked 24 hours after:

  1. I removed references and completely deleted the framework in question from my Xcode project.

  2. Opened Simulator, chose Simulator/Reset Content and Settings..

  3. In Xcode, I did a Product/Clean and while holding alt down, did a Product/Clean Build Folder. I think if you do the latter of the 2, Product/Clean is unnecessary, but I was grabbing at straws

  4. To add the framework back to the project, I chose the target/Build Phases and added a new Copy Files phase.

  5. Made destination "Frameworks", TICKED "Copy only when installing" before adding the framework ( this part is in bold because it is the only thing that I changed from my original attempt ) added the framework to the copy files phase.

My blood pressure is back to normal now..

Graehme answered 12/3, 2016 at 11:3 Comment(0)
D
1

This Worked for me:

  • Go to the info.plist file on your Finder.
  • Drag it and Add it to the Project Folder (Without Copying)
  • Delete the Previous Reference (only the Reference, do not move to Trash)
  • Try Running it again

Hope this helps someone :)

Deranged answered 14/12, 2017 at 15:57 Comment(0)
R
1

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.

Remit answered 5/2, 2018 at 7:16 Comment(0)
R
1

Also you can check the target dependencies. It took me 1hr before realising that I have copied a UI test target for target A, but there was a dependency left. So the build required a file that was not mapped to target B, but only to A.

ui test for target B: dependency for target B and A

Rozella answered 29/5, 2018 at 7:44 Comment(0)
S
0

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.

Sciolism answered 4/10, 2014 at 5:5 Comment(6)
I did take a look in the project folder, and info.plist is in thereNab
Now try copying info.plist file from your any of your previous projects. I've solved my issue in similar manner and it thd worked for me and it might work for u as well.Sciolism
I deleted the plist and copied another one over (as well as reinstalling XCODE), and am still getting the error :/Nab
can you please tell me which error you are getting?Sciolism
you can also look at the video: youtube.com/watch?v=gYh4_80jHDk&feature=youtu.beSciolism
Thank you for taking the time to do that! The error I'm getting is "The file “Info.plist” couldn’t be opened because there is no such file." Unfortunately, I followed all of the steps in the video; and am still getting the same error :/Nab
I
0

One other thing for consideration is to uncheck Localization for info.plist in utility bar,if you have checked it and then clear the project,the task is done!

Incurable answered 8/3, 2015 at 16:15 Comment(0)
E
0

The answers above did not apply to my case.

This is what I have discovered.

Some weeks ago I dowloaded to my Downloads folder a github objective c library for my project. I then added that librabry with "Add Files to..." and the library worked just fine.

I regularly delete old files and folders from my Downloads. It happens that I deleted the folder that contained the objective-c library! Therefore, Xcode was complaining that it could not find a "Info.plist" that was in that folder. I went to the Trash bin, restored the folder and now it's all good!

Next time I add files to my folder I will make sure the files get copied into the project.

This Apple doc was of great help: https://developer.apple.com/library/ios/qa/qa1649/_index.html

Good luck

Eulaeulachon answered 26/7, 2016 at 0:23 Comment(0)
M
0

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.

Mong answered 8/6, 2017 at 11:6 Comment(0)
G
0

While creating framework with enabled test cases, please ensure project should have two info.plist, one in the main project and other in tests.now you are getting this error because there may be missing of info.plist file either in project or in tests.

Garotte answered 9/9, 2017 at 15:44 Comment(0)
I
0

do this only after reading all the other answers on this page

So basically the other answers are probably what you need. I've tried all of them and they didn't work. Not because they are wrong, but because I was simply looking at the wrong place.

Basically the error message simply states: The file "Info.plist" couldn't be opened etc etc. And I noticed all the answers on this page spoke about the plist file pertaining to the actual project (or it's test files, anyway). I double checked 1000 times and they were definitely in the right place.

That's when I realized the error message simply wasn't giving enough information, I have many info.plist files on my project!

So I simply compiled the code outside of xcode using command line like so:

xcodebuild -project project.xcodeproj -alltargets -configuration Debug

It gave me a much more detailed error message:

...

builtin-copyPlist --convert binary1 --outdir /Users/Shared/dev/ios/customer-ios/build/Debug-iphoneos/theApp.app -- theApp/Libs/STPopup/Info.plist /Users/Shared/dev/ios/customer-ios/theApp/Libs/STPopup/Info.plist:0: error: reading data: The file “Info.plist” couldn’t be opened because there is no such file.

** BUILD FAILED **

The following build commands failed: CopyPlistFile build/Debug-iphoneos/theApp.app/Info.plist theApp/Libs/STPopup/Info.plist

enter image description here

so it told me which plist file was problematic: Libs/STPopup/Info.plist.. I searched for that file and indeed it turns out I was given a project that had missing libs:

enter image description here

Inhalator answered 1/10, 2017 at 18:29 Comment(0)
P
0

Possible XCode 9 Update - I ran into this problem after I moved a bunch of files, including Info.plist, into a "Supporting Files" group. I've never had this error occur before XCode 9, so either it's something I did differently when moving/adding files to a group or it's something new w/ XCode 9 update.

When creating a group/folder based on selected files in XCode 9, it actually moves the files into a new folder in the Finder. Thus, my Info.plist file was moved and XCode/build/compile couldn't find it. I followed nivritgupta's idea above and it worked perfectly (select "Choose Info.plist File..." from Identity category in General build settings). I then selected the Info.plist file from its new location (that had been) "relocated" by XCode 9, and then my project built without an issue.

Side note: this also fixed the weird "Missing default-568h@2x" warning I started receiving at that same time. Two birds...

Phrygia answered 28/11, 2017 at 5:58 Comment(0)
B
0

Not for info.plist but for another plist file I encountered the same problem. the reason for the error is I inadvertently copied the file to a folder, so it created a symlink. and When I remove the original file, this error is thrown. Deleting the symlinking file resolved the problem.

Brieta answered 13/1, 2018 at 14:52 Comment(0)
N
0

Real Project Example with screenshots showing another way to solve this issue.

Using Swift 4 and Xcode 9.

1-look at the Xcode build error problem as shown in the picture in the 'Step 1 Visual Description' and it will tell you which Sub Folder in your Xcode Project the file belongs in. In my case it is the NVActivityIndicatorViewExample/Info.plist. Step 1 Visual Description

2-But you can also see where the Info.plist file is supposed to be by going to the 'Build Settings' section in your Xcode projects 'Target' area as shown in the picture in the 'Step 2 Visual Description'. When you're there look in the 'Packaging section' and click on the 'Info.plist file' row to have a pop up view show you which folder the file is supposed to be in. Step 2 Visual Description

3-Find your Info.plist file, open it up as a source code file by right clicking on it. Look at the Step 3 Visual Description for help.

4-Copy the code and delete the Info.plist file. Look at the Step 4 Visual Description for help.

5-The find the folder inside your project where the Info.plist file is supposed to go according to your build setting then right click on that folder and click on 'New File'. Look at the Step 5 Visual Description for help.

6-Make sure you're in the section for the kind of App (iOS in this case) you're building, go to resources and select 'Property List'. Look at the Step 6 Visual Description for help.

7-Type in "Info" as the file name with no extension, make sure the Group and Target are selected for your application and click "Create". Look at the Step 7 Visual Description for help.

8-Open the newly created Info.plist file as "Source Code", paste the previous XML code you copied from the deleted Info.plist file, save, and the run your app. (You can also build and clean the project if you want.)

Naaman answered 16/1, 2018 at 16:55 Comment(0)
I
0

This is what works for me:

  • close xcode
  • delete dervivedData folder content
  • open xcode
  • product clean
  • run again
Iceland answered 6/10, 2019 at 10:1 Comment(0)
K
0

Project -> Targets -> Info -> Custom iOS Target Properties enter image description here

Klinges answered 9/2, 2023 at 14:15 Comment(0)
B
0

My problem was a tiny error in my Info.plist file

To make sure it's not your case,

  1. On the left panel in xCode, find the folder with your project name

  2. Click on it, you should see the Info.plist file

  3. Click on the Info.plist file, if it opens with no problem, the other answers in this thread should solve your issue, if it has an error, the file will not open and a prompt will appear to tell you where the error is

Boundary answered 20/3, 2023 at 7:3 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.