Dima Shvets
Dima Shvets

Reputation: 113

Application Loader Error: XML Parsing Error has occurred

The essence of the problem:

  1. When you download the application on the AppStore through organizer, immediately after the step of forming an archive application, it throws this error.
  2. The name of the application without special characters.
  3. The Info.plist file hasn't special characters and spaces.

An XML parsing error has occurred

The XML File: metadata.xml in var/folders...itmsp is NOT well-formed

The package: 1123619127.itmsp will NOT be uploaded

Image with problem

Upvotes: 4

Views: 2365

Answers (4)

budiDino
budiDino

Reputation: 13527

I managed to fix a similar issue by opening my target's "General" tab and deleting "336" from my build version and typing it in again.

You can clearly see where the error was when committing changes to your info.plist file:

enter image description here

hint: no you can't!

Upvotes: 1

Ryan Cortez
Ryan Cortez

Reputation: 59

In my Info.plist file, I had placed the value 2.4.11 in key Bundle versions string, short and received the same error.

It appears that Apple XML validation does not accept the period character '.' in the Info.plist Bundle version key otherwise known as the Build Number in the Xcode Project view.

Upvotes: 0

NightFury
NightFury

Reputation: 13546

Go find the cause of error, you have to find xml file. Click View Log and get full path.

enter image description here

Path usually starts as var\folders\0s\... To find var folder, open Finder > Go to folder, Enter /var. After navigating to .itmsp file, right click on and select Show Package Contents.

Open metadata.xml using any text editor except TextEdit or xcode, since they won't ahow any special character present in the file. They usually escape it. I used Sublime Text. It showed me a special unicode being attached to app version anonymously, which was causing xml to be invalid.

enter image description here

Hope it helps!

Upvotes: 8

BuguiBu
BuguiBu

Reputation: 1625

In my case even I wasn't able to see special characters or white spaces what help to solve the problem me was to validate manually that XML.

Upvotes: 1

Related Questions