Open CrazyNeil opened 2 years ago
@ CrazyNeil hello , im having the same issue , my app work completely fine on my mac but when i compress and upload it to google drive or dropbox the app no longer works when i download it(I get the cant be opened error) . Note that i am trying to download it on the same mac where it worked before i uploaded it. Is there any fix for this ? or did you manage to fix the issue ?
I am having the same issue here. I did a bit of digging and found that once my app was downloaded from the web, it recieved a specific flag, called "com.apple.quarantine", which seems to tell macos that the app is not allowed to be opened.
You can check if your app has this flag by running "xattr [path to your app]". You can remove the flag by running "xattr -d com.apple.quarantine [path to your app]", and then the app will open just fine.
However it isn't exactly ideal to make your users type some random command into the terminal to make your app run. If anyone knows how to stop this flag from being added, please let me know!!!
I build the App on M1 Mac mini, and archive to dmg package by Mac disk utility. After upload the .dmg file to Amazon S3 and download it again, it shows dmg damaged and can't open error. I pretty sure .dmg file works fine without upload & download.
This error not happen if I build this App on Intel Mac, upload and download the .dmg works totally fine.
The whole build process are good and no errors come up on both M1 and Intel Mac.
I guess it's Signature problem on M1 Mac. Is that may caused by ttf font been added?
I read https://github.com/ronaldoussoren/py2app/issues/450 but still can't find a reason.
Here is the pre-build output
and launch in terminal by
./dist/MyApplication.app/Contents/MacOS/MyApplication
shows no errorany one can help. thanks!