Decode notarization information from upload, info and history request using xcrun altool
with --output-format xml
as argument.
let response = try NotarizationResponse(from: data) // or string
xcrun altool --notarize-app ...
if let uuid = response.notarizationUpload?.requestUUID {
...
}
xcrun altool --notarization-info <id> ...
if let status = response.notarizationInfo?.status {
}
xcrun altool --notarization-history ...
for item in response.notarizationHistory?.items ?? [] {
...
}