Apple Notarisation ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX" at SoftwareAssets/EnigmaSoftwareAsset

Been 5 days on notarisation issues and nowI am stuck and cannot move on.

In previous attempts I was able to re-try and re-try but now are stuck when I do:

xcrun altool --notarize-app --primary-bundle-id com.company.*** --username myemail --password "@keychain:altool" --file pathto\mypackage.pkg -asc-provider ***

Snapshot: Error:

[2021-08-31 15:13:35 SGT]  INFO: Performing authentication of package net.company.xx.itmsp ...

[2021-08-31 15:13:35 SGT] DBG-X: Memory: [JVM] 974M free, 1024M total, 2048M max [System] (Physical) 1105M free, 16384M total (Swap) 0 free, 0 total

[2021-08-31 15:13:35 SGT]  INFO: JSON:{"msg":{"phase":"Upload","count":2,"description":"Analyzing metadata","index":1},"messageType":"VerifyProgress"}

[2021-08-31 15:13:35 SGT] DBG-X: Deflated 572 bytes to 452

[2021-08-31 15:13:35 SGT] DBG-X: Using operation named: validateMetadata

[2021-08-31 15:13:35 SGT] DBG-X: Apple's web service operation input parameters:

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Application = iTMSTransporter

[2021-08-31 15:13:35 SGT] DBG-X:  parameter BaseVersion = 2.1.0

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Client = altool

[2021-08-31 15:13:35 SGT] DBG-X:  parameter ClientVersion = 4.050 (1210)

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Files = [XX.pkg, metadata.xml]

[2021-08-31 15:13:35 SGT] DBG-X:  parameter ItcProviderName = XX

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Metadata =   <software_assets     app_platform="osx"     primary_bundle_identifier="net.copmany.xx">            <data_file>         <file_name>XX.pkg</file_name>         ecebcd93615806456d8bc8c550d1267c         17615853       </data_file>        </software_assets>

[2021-08-31 15:13:35 SGT] DBG-X:  parameter MetadataChecksum = f621fe2b214b7d633553d5e8c6358b03

[2021-08-31 15:13:35 SGT] DBG-X:  parameter MetadataCompressed = (suppressed)

[2021-08-31 15:13:35 SGT] DBG-X:  parameter MetadataInfo = {app_platform=osx, primary_bundle_identifier=net.copmany.XX, device_id=, bundle_identifier=, packageVersion=software5.9, apple_id=, asset_types=[developer-id-package], bundle_version=, bundle_short_version_string=}

[2021-08-31 15:13:35 SGT] DBG-X:  parameter OSIdentifier = Mac OS X 11.5.2 (x86_64); jvm=14.0.2+12-iTunesOpenJDK-5; jre=14.0.2+12-iTunesOpenJDK-5; arch=arm64; rosetta=true

[2021-08-31 15:13:35 SGT] DBG-X:  parameter PackageName = net.company.XX.itmsp

[2021-08-31 15:13:35 SGT] DBG-X:  parameter PackageSize = 17616425

[2021-08-31 15:13:35 SGT] DBG-X:  parameter StatisticsClientStartDateTimeZoneISO = 2021-08-31T15:13:35+08:00

[2021-08-31 15:13:35 SGT] DBG-X:  parameter TransporterArguments = -m upload -u m -vp json -DTxHeaders=eyJqZW5nYSI6dHJ1ZX0= -sessionid @env:7F9601C8-4ABC-4F9F-A50D-36846F20C179 -sharedsecret hidden value -itc_provider XX -f /var/folders/b3/q74qf15d43561dlmf2g6y86r0000gn/T/A6CB0D21-BA1F-4164-9B09-75DC5E573BBC/net.xx.xx.itmsp -indicator true -v eXtreme -Dtransporter.client=altool -Dtransporter.client.version=4.050 (1210)yemail

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Version = 2.1.0

[2021-08-31 15:13:35 SGT] DBG-X:  parameter iTMSTransporterMode = upload

[2021-08-31 15:13:35 SGT]  INFO: id = 20210831151335-486

[2021-08-31 15:13:35 SGT]  INFO: iTMSTransporter Correlation Key: 60c9b78b-22a5-487e-a336-c7a83509fa85-0001

[2021-08-31 15:13:35 SGT] DEBUG: DataCenter: contentdelivery02.itunes.apple.com

[2021-08-31 15:13:35 SGT] DBG-X: Apple's web service operation return value:

[2021-08-31 15:13:35 SGT] DBG-X:  parameter EnableJWTForAllCalls = false

[2021-08-31 15:13:35 SGT] DBG-X:  parameter MinimumFileSizeThresholdForCheckum = 104857600

[2021-08-31 15:13:35 SGT] DBG-X:  parameter SoftwareMediaDescriptionFormat = binary

[2021-08-31 15:13:35 SGT] DBG-X:  parameter RestartClient = false

[2021-08-31 15:13:35 SGT] DBG-X:  parameter SoftwareMediaDescriptionThresholds = {in-app-purchase-content={extensions=[pkg], size=100000000}, ccats={extensions=[pdf], size=100000000}, product-archive={extensions=[pkg], size=100000000}, developer-id-package={extensions=[zip, pkg, dmg], size=100000000}, bundle={extensions=[zip, ipa], size=100000000}, large-icon={extensions=[jpg, png, jpeg], size=100000000}}

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Success = false

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Errors = [ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is 0a92b382-7888-40f3-8d94-8fb05cc50267" at SoftwareAssets/EnigmaSoftwareAsset]

[2021-08-31 15:13:35 SGT] DBG-X:  parameter FilesToUpload = [metadata.xml, XX.pkg]

[2021-08-31 15:13:35 SGT] DBG-X:  parameter AssetsToDescribe = []

[2021-08-31 15:13:35 SGT] DBG-X:  parameter Checksums = {XX.pkg=XX}

[2021-08-31 15:13:35 SGT] DBG-X:  parameter FileSizes = {XX.pkg=17615853}

[2021-08-31 15:13:35 SGT] DBG-X:  parameter ErrorCode = 1102

[2021-08-31 15:13:35 SGT] DBG-X:  parameter ErrorMessage = ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX-7888-40f3-8d94-8fb05cc50267" at SoftwareAssets/EnigmaSoftwareAsse  (1102)

[2021-08-31 15:13:35 SGT] DBG-X:  parameter ShouldUseRESTAPIs = false

[2021-08-31 15:13:35 SGT] ERROR: ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX-7888-40f3-8d94-8fb05cc50267" at SoftwareAssets/EnigmaSoftwareAsset

[2021-08-31 15:13:35 SGT] DBG-X: The error code is: 1102

[2021-08-31 15:13:35 SGT]  INFO: JSON:{"msg":{"phase":"Upload","count":2,"description":"Operation failed","index":2},"messageType":"VerifyProgress"}

[2021-08-31 15:13:35 SGT] DBG-X: Returning 1

 Out:

Package Summary:   1 package(s) were not uploaded because they had problems:

/var/folders/b3/***/T/A6CB0D21-BA1F-4164-9B09-75DC5E573BBC/net.company.***.itmsp - Error 

Messages:

	ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX-7888-40f3-8d94-8fb05cc50267" at SoftwareAssets/EnigmaSoftwareAsset

*** Error: Unable to notarize app. *** Error: ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX-7888-40f3-8d94-8fb05cc50267" at SoftwareAssets/EnigmaSoftwareAsset (-18000)

altool has been deprecated in favour of notarytool. I recommend that you retry with that before you spend any more time working with altool. For more background, see WWDC 2021 Session 10261 Faster and simpler notarization for Mac apps.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Where do I download notarytool? I tried and I got:

zsh: command not found: notarytool

I'm on Mac Mini M1 and latest Big Sur 11.5.2

Thanks

xcrun notarytool --help

xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find notarytool 2> /dev/null' failed with exit code 17664: (null) (errno=Invalid argument) xcrun: error: unable to find utility "notarytool", not a developer tool or in PATH

notarytool is part of Xcode 13 beta.

IMPORTANT While Xcode 13 beta is, as a whole, a pre-release product and thus not suitable for production use, the notarytool it contains is not a pre-release product and we recommend it for all your notarisation purposes.

xcrun notarytool --help

The xcrun command targets your current command-line tools. If you use xcode-select to select Xcode 13 beta as your current command-line tools, the command above will work.

Alternatively, if you want to leave your current command-line tools pointing at a production Xcode, which is what I recommend, do this:

% DEVELOPER_DIR=/path/to/Xcode-beta.app/Contents/Developer xcrun notarytool -help
OVERVIEW: Manage submissions to the Apple notary service
…

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I managed to download and install xcode 13 beta which has the notarytool. Managed to submit my app but get it notarised.

Waiting for processing to complete. Current status: Invalid............ Processing complete

How do I find out the reason it failed?

I found out the log:  "message": "The binary is not signed with a valid Developer ID certificate.",

But I am quite sure I have signed the file. codesign -dvvv --entitlements :- myapp

shows:

Executable=/Volumes/NVME-970-EVO-1TB/Projects/VT/X/Installer and Packager/MacPackagerProjects/XX Software/build/XX.pkg Identifier=XX Format=generic CodeDirectory v=20200 size=187 flags=0x10000(runtime) hashes=1+2 location=embedded Hash type=sha256 size=32 CandidateCDHash sha1=a5c3fca6702318ff49842d75eea536bd577698f1 CandidateCDHashFull sha1=a5c3fca6702318ff49842d75eea536bd577698f1 CandidateCDHash sha256=c168b1bf7db113dc987407ba3780698ffbc61903 CandidateCDHashFull sha256=c168b1bf7db113dc987407ba3780698ffbc619033baf832bc75f14cadcbfaa4d Hash choices=sha1,sha256 CMSDigest=1da4c4bf06b725a1991a0068919b3841dbd24929c00054bc7e0f21b6d3127e8e CMSDigestType=2 CDHash=c168b1bf7db113dc987407ba3780698ffbc61903 Signature size=9057 Authority=Developer ID Application: Mycompany (ZXJ5F9A8D) Authority=Developer ID Certification Authority Authority=Apple Root CA Timestamp=1 Sep 2021 at 3:56:27 PM Info.plist=not bound TeamIdentifier=ZXJ5F9A8D Sealed Resources=none Internal requirements count=1 size=188

What did I do wrong?

Ok, I got it working. Thanks

Apple Notarisation ERROR ITMS-90732: "The software asset has already been uploaded. The upload ID is XX" at SoftwareAssets/EnigmaSoftwareAsset
 
 
Q