pooler / electrum-ltc

Electrum-LTC Litecoin wallet
https://electrum-ltc.org
MIT License
194 stars 100 forks source link

macOS codesign notarisation fails #292

Open losh11 opened 2 years ago

losh11 commented 2 years ago

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.
pooler commented 2 years ago

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.