pooler/electrum-ltc

macOS codesign notarisation fails

Opened this issue · 1 comments

Failure occurs at end of build, with error log:

💬 INFO:  Notarizing .app with Apple's central server...
Generating ZIP archive Electrum-LTC.app.zip...
Submitting Electrum-LTC.app for notarization...
2022-06-05 13:17:31.980 altool[33465:144777] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
Submitting Electrum-LTC.app failed:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>os-version</key>
	<string>10.16.0</string>
	<key>product-errors</key>
	<array>
		<dict>
			<key>code</key>
			<integer>-22016</integer>
			<key>message</key>
			<string>We are unable to create an authentication session.</string>
			<key>userInfo</key>
			<dict>
				<key>NSLocalizedDescription</key>
				<string>We are unable to create an authentication session.</string>
				<key>NSLocalizedFailureReason</key>
				<string>Unable to validate your application.</string>
			</dict>
		</dict>
	</array>
	<key>tool-path</key>
	<string>/Users/vagrant/Downloads/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework</string>
	<key>tool-version</key>
	<string>4.00.1181</string>
</dict>
</plist>
🗯 ERROR: Could not notarize binary.

I have never personally tested macOS codesigning, but based on this, it would appear that (in spite of the way variables are named in Electrum build scripts) one has to use the app-specific password instead of the Apple ID password.