leanflutter / auto_updater

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).
MIT License
278 stars 38 forks source link

Distribution Error with App Store Connect #63

Closed ttzein6 closed 1 month ago

ttzein6 commented 1 month ago

I am encountering this error (check attached screenshot) when attempting to distribute my app using App Store Connect, even though I have enabled App Sandboxing.

I am using the auto_updater package to handle app updates for installations outside the App Store. However, I want to provide two download options:

1.  Download the app from the App Store.
2.  Download the app installer from the website.

Is there any solution or workaround for this issue to unblock me?

Thank you. image

BruceChen5683 commented 1 month ago

you need codesign these files.like this codesign --force --entitlements macos/Runner/Release.entitlements -s "Developer ID Application:XXX" macos/Pods/Sparkle/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc/Contents/MacOS/Downloader; codesign --force --entitlements macos/Runner/Release.entitlements -s "Developer ID Application:XXX" macos/Pods/Sparkle/Sparkle.framework/Versions/B/XPCServices/Installer.xpc/Contents/MacOS/Installer; codesign --force --entitlements macos/Runner/Release.entitlements -s "Developer ID Application:XXX" macos/Pods/Sparkle/Sparkle.framework/Versions/B/Updater.app/Contents/MacOS/Updater; codesign --force --entitlements macos/Runner/Release.entitlements -s "Developer ID Application:XXX" macos/Pods/Sparkle/Sparkle.framework/Versions/B/Autoupdate;

ttzein6 commented 1 month ago

Thank you @BruceChen5683 !