公证信息

使用带有 --output-format xml 参数的 xcrun altool 从上传、信息和历史记录请求中解码公证信息。

解码

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

上传后获取请求 UUID

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 ?? [] {
 ... 
 }