maptool icon indicating copy to clipboard operation
maptool copied to clipboard

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

Open Phergus opened this issue 4 years ago • 9 comments

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 avatar May 27 '21 13:05 Phergus

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

cwisniew avatar May 27 '21 13:05 cwisniew

Is the workaround mentioned on this page still valid?

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

Phergus avatar May 29 '21 22:05 Phergus

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.

cwisniew avatar May 30 '21 05:05 cwisniew

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

Phergus avatar May 31 '21 19:05 Phergus

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

micheletedeschi avatar Jan 13 '22 18:01 micheletedeschi

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 avatar May 21 '23 09:05 Lofter1

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)

cwisniew avatar May 23 '23 10:05 cwisniew

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.

Lofter1 avatar May 23 '23 11:05 Lofter1