Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS reports the DMG files are broken and need to be moved to the trash. #2679

Open
Phergus opened this issue May 27, 2021 · 9 comments
Open
Labels
bug deferred Kept for a future version

Comments

@Phergus
Copy link
Contributor

Phergus commented May 27, 2021

Describe the bug
MacOS reports the DMG files are broken and need to be moved to the trash.

To Reproduce
Steps to reproduce the behavior:

  1. Download and attempt to run.

Expected behavior
Should run.

MapTool Info

  • Version: 1.9.0 Alpha 9 & Beta 2

Desktop (please complete the following information):

  • OS: MacOS

Additional context
Reported on Reddit & Discord.

@Phergus Phergus added the bug label May 27, 2021
@cwisniew
Copy link
Member

cwisniew commented May 27, 2021

This is a mac gate keeper annoyance. We may have to stop distributing the dmg and only provide the pkg if we can't find a work around. The dmg isn't actually corrupt gate keeper just doesn't like that its not signed

@Phergus
Copy link
Contributor Author

Phergus commented May 29, 2021

Is the workaround mentioned on this page still valid?

https://apple.stackexchange.com/questions/370202/how-do-i-skip-verification-of-a-dmg-file

@cwisniew
Copy link
Member

cwisniew commented May 30, 2021

For older versions of the OS
https://forums.rptools.net/viewtopic.php?t=25483

For newer versions of the OS the "Anywhere" option doesn't exist, it can be reenabled by running
sudo spctl --master-disable
From the terminal, which should allow you to proceed with the steps in the above link

Unfortunately its not something I can test as its been installed on every computer I have so the DMG works fine without any extra steps on them all.

@Phergus Phergus changed the title Mac DMG files for 1.9 builds are broken MacOS reports the DMG files are broken and need to be moved to the trash. May 30, 2021
@Phergus
Copy link
Contributor Author

Phergus commented May 31, 2021

Until is is determined that there is something that we can do about this taking this off of the active projects.

@Phergus Phergus added the deferred Kept for a future version label May 31, 2021
@micheletedeschi
Copy link

this working for me:

after copy the MapTool.app into Application execute this command sudo xattr -cr /Applications/MapTool.app

enter your password, then open the MapTool app

@Lofter1
Copy link

Lofter1 commented May 21, 2023

The xattr workaround doesn't work for me. Even tried sudo xattr -dr com.apple.quarantine /Applications/MapTool.app but nope. After I run any command on /Applications/MapTool.app I also get "Operation not permitted" on any subsequent command.
I'm not even sure if my downloaded DMG is correct or not (an MD5 Hash sum would help verifying that it's not a problem on my end and all my downloads have been broken).

PS: I also get the same broken message with the pkg file

@cwisniew
Copy link
Member

The xattr workaround doesn't work for me. Even tried sudo xattr -dr com.apple.quarantine /Applications/MapTool.app but nope. After I run any command on /Applications/MapTool.app I also get "Operation not permitted" on any subsequent command. I'm not even sure if my downloaded DMG is correct or not (an MD5 Hash sum would help verifying that it's not a problem on my end and all my downloads have been broken).

PS: I also get the same broken message with the pkg file

@Lofter1 is the error you are getting something like below (with all the files in the MapTool.app directory listed)?
xattr: [Errno 1] Operation not permitted: '/Applications/MapTool.app/....

If so this is most likely because the terminal program you are running does not have permission to perform the changes, if this is the case when you try run it again there should be a notification message (defaults to top right of the screen if you haven't changed it) saying this, clicking on it will take you to the settings where you need to give the permission to the terminal program (or iTerm, or what ever you are using)

@Lofter1
Copy link

Lofter1 commented May 23, 2023

Yes, that is the message. But i did not get a notification.

However, after hours of trying and reinstalling, at some point, it worked. I cannot say what exactly it was I did differently when it finally worked, though.

@baphometaten
Copy link

this working for me:

after copy the MapTool.app into Application execute this command sudo xattr -cr /Applications/MapTool.app

enter your password, then open the MapTool app

This worked for me. Thanks. On Mac OS Monterey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug deferred Kept for a future version
Projects
None yet
Development

No branches or pull requests

5 participants