XCBUtil.PropertyListConversionError in Xcode
Asked Answered
A

6

7

When I try to run my project, I get this error, pointing to my localized .strings file:

Screenshot of the error.

read failed: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)

What can I do to fix this issue?

Atthia answered 17/10, 2017 at 14:8 Comment(0)
A
17

There is a formatting error inside the .string file that the error is pointing at. Localizable .strings files should contain strings in quotes (if they contain more than one word and/or special characters) and semicolons at the end of lines, like such:

string = translation;
"another string" = "another translation";

Please refer to this solution to find the error.

You should execute

/usr/bin/plutil -lint <path to .strings file>

in Terminal to find the exact issue.

Atthia answered 17/10, 2017 at 14:8 Comment(0)
R
12

In my case, I had a conflict in info.plist which I forgot to resolve.

Repeat answered 27/8, 2019 at 6:50 Comment(0)
T
5

This quite common when you have info.plist file with wrong structure.

Transubstantiate answered 16/2, 2020 at 17:51 Comment(0)
C
2

For flutter dev

Change from

<key>UISupportsDocumentBrowser</key>
<bool>true</bool>

to

<key>UISupportsDocumentBrowser</key>
<true/>
Cachexia answered 27/6, 2021 at 9:15 Comment(0)
E
2

For me I got error XCBUtil.PropertyListConversionError error 2.). It happened for combination INFOPLIST_OTHER_PREPROCESSOR_FLAGS = -traditional and INFOPLIST_PREFIX_HEADER which contained comments started with //. So I fixed it by changing comments to old style: /* */

Exsiccate answered 9/2, 2022 at 15:1 Comment(0)
D
1

if you use Firebase, delete GoogleService-Info.plist file and download again

Dhobi answered 23/4, 2023 at 21:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.