Skip to content
Snippets Groups Projects
notarize.sh 425 B
Newer Older
#!/bin/bash

cd build-local
xcrun notarytool submit ${LIBRARYNAME}.zip --apple-id ${APPLE_ACCOUNT} --password ${APPLE_PASSWORD} --output-format plist --team-id ${TEAM_ID} --wait > UploadInfo.plist
STATUS=$(xmllint --xpath "/plist/dict/key[.='status']/following-sibling::string[1]/node()" UploadInfo.plist)
if [ "$STATUS" == "Accepted" ];
then
echo  "notarization success"
break
else
echo "notarization failed"
break
exit 1