Skip to content

fix(import): find the export XML whatever iOS named it - #1009

Merged
MBombeck merged 1 commit into
mainfrom
fix/import-export-xml-name
Sep 19, 2026
Merged

MBombeck merged 1 commit into
mainfrom
fix/import-export-xml-name

Conversation

@MBombeck

Copy link
Copy Markdown
Owner

The Apple Health import matched its archive member against the English lowercase export.xml alone. iOS writes that name in the phone's language and some versions capitalise it, so a perfectly normal export could arrive as Export.xml or translated and was refused with "Archive is missing the apple_health_export/export.xml member". Reported in #1008.

The basename now matches in any capitalisation, and a single top-level XML member is accepted as the translated spelling. *_cda.xml is never taken: Apple ships that clinical-document file beside the real export. When nothing qualifies, the error lists the XML members actually present.

The archive member was matched against the English lowercase spelling
alone. iOS writes that file name in the phone's language and some
versions capitalise it, so an ordinary export could arrive as
Export.xml or a translated name and was refused with a message telling
the reader their export was invalid.

The basename now matches in any capitalisation, and a single XML member
at the top of the archive is taken as the translated spelling. Apple's
clinical-document file never qualifies: it sits beside the real export
and would parse to nothing. When no member qualifies the error lists the
XML members the archive does hold, so the next report arrives with the
answer in it.

Refs #1008
@MBombeck
MBombeck merged commit 6291c95 into main Sep 19, 2026
24 checks passed
@MBombeck
MBombeck deleted the fix/import-export-xml-name branch September 19, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant