Skip to content

phimage/NotarizationInfo

Repository files navigation

NotarizationInfo

Decode notarization information from upload, info and history request using xcrun altool with --output-format xml as argument.

Decode

 let response = try NotarizationResponse(from: data) // or string

Get request UUID after uploading

xcrun altool --notarize-app ...

 if let uuid = response.notarizationUpload?.requestUUID {
 ... 
 }

Get status

xcrun altool --notarization-info <id> ...

 if let status = response.notarizationInfo?.status {
 
 }

Get history

xcrun altool --notarization-history ...

 for item in response.notarizationHistory?.items ?? [] {
 ... 
 }