What is wrong with this pList?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
      <key>ITSAppUsesNonExemptEncryption</key>
      <false/>
  <dict/>
</plist>

I get a

unable to read input file as a property list: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.)

but this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict/>
</plist>

“works”, but of course it contains zero keys…

Dunno as the one I made in Xcode looks similar

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>ITSAppUsesNonExemptEncryption</key>
	<false/>
</dict>
</plist>

hidden special chars or something ?

Perhaps should be </dict> ?

turns out there was nothing wrong, except for the fact that since Xcode 13 , an info.plist was no longer required… so by adding one, it conflicted with the internal copy.

For those that need to alter this data in an Xcode project…

  1. Select the TARGET file
  2. Select INFO from the top bar, this will display the internal “pList”
  3. click on any existing item
  4. click on the (+) and a list of “keys” will appear
  5. select the key you wish to add
  6. set its value