Giter Site home page Giter Site logo

Comments (22)

ragnar76 avatar ragnar76 commented on June 23, 2024 4

I got it working!

I had a look at the files and the problem, for me, was that MacOS put the files in quaratine. By removing the file attribute "com.apple.quaratine" using

xattr -r -d com.apple.quarantine /Applications/imhex.app/

imhex works like a charme now.

from imhex.

ssnkhan avatar ssnkhan commented on June 23, 2024 2

Had the same issue, and this fixed it for me codesign --force --deep --sign - /Applications/imhex.app/. (Thanks to @WerWolv via Discord).

from imhex.

ragnar76 avatar ragnar76 commented on June 23, 2024 1

No luck here on my 2nd Mac (an older 2019 MBP) still the same after a new install. Right after the start i get this error

grafik
(in german: imhex is demaged and cannot be opened and so on"

I have to remove it from quaratine first before i can use it

from imhex.

joshuajohncohen avatar joshuajohncohen commented on June 23, 2024 1

I'm having the same issue. It says the app is damaged and can't be opened, I've tried downloading from Github and through Homebrew. It has xattr of com.apple.quarantine in both cases. I'm on MacOS 12.7.2.

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

Hey
Could you please provide some more information about what's happening when you run them? Any error messages, logs, etc?

Both the M1 and the x86 work perfectly fine on my M2 macbook air fwiw.

Also cant use the ARM version (even though I'm on an M1 because my OS is 1 major version behind and listed as unsupported by the binary)

That has been fixed since. The latest nightly release now has the same OS version requirement as the x86 version.

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

Had the same issue, and this fixed it for me codesign --force --deep --sign - /Applications/imhex.app/. (Thanks to @WerWolv via Discord).

Same issue, its a code signing problem. I was able to get it to run by signing it myself or forcing an exception but neither are ideal. Will test again once I get a chance.

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

What's weird is that it works completely fine on my machine. Don't have to re-sign it myself.

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

I did check the xattr quarantine attribute but deleting mine and correcting it both didn't fix it so it might be that re-signing its forcing some header rebuilding that is making it valid for older macs? I'm assuming the header itself is specifying it's only for newer MacOS versions regardless of the actual support.

https://en.wikipedia.org/wiki/Mach-O#Minimum_OS_version

As a result it just errors giving you a screen about updating and crossing out the binary.

Screenshot 2024-01-29 at 21 44 53 Screenshot 2024-01-29 at 21 51 20

from imhex.

ragnar76 avatar ragnar76 commented on June 23, 2024

Stumbled across the same problem, bot with 1.32.2 and latest nightly build. Even signing (mentioned above) does not help. I'm using a 13" MBP with MacOS 14.3

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

Latest nightly works fine for me too. Opening it regularly shows this screen here:
image

but then right clicking and choosing open shows
image
and I can just click on "Open" to launch ImHex.

Are there any settings you guys have enabled or I have disabled that would cause macOS to refuse to launch it? I seriously can't think of anything else. SIP is still enabled on my machine, that's the only one I know about

from imhex.

ragnar76 avatar ragnar76 commented on June 23, 2024

I haven't changed anything, at least not that i'm aware of.

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

That's not really a fix, that just makes macOS not check ImHex's signature anymore.
If there is an issue with the signatures, somehow my mac decided to not care about it or yours has some extra security settings enabled

from imhex.

ragnar76 avatar ragnar76 commented on June 23, 2024

possible but why is the re-signing process (above, #1500 (comment)) not working then? Or is it working but the extended file attributes, from first start try?, are still there? Will remove imhex tomorrow evening and reinstall it again for testing, my bed's calling me, i can hear it ;)

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

That's not really a fix, that just makes macOS not check ImHex's signature anymore. If there is an issue with the signatures, somehow my mac decided to not care about it or yours has some extra security settings enabled

There are 2 problems here. First is the signing issue and second is the min version header.

In my case I can sign and get it working on my mac using MacOS 14 but on my MacOS 13 mac (both are M2 macs) I get the errors in my screenshot above when using the ARM binary. Like I mentioned with the header, the header displays a minimum version of 14 minos 14.0 for ARM. However the x86 binaries have minos 12.7.

As for signing, maybe there is some sort of new trust requirement for externally downloaded files or in the signing setup change under MacOS 14 or xcode 14 which may be causing this? I know of one such change, though the impact I'm not certain of, is the switch from atool to notarytool for xcode14....

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

Made one more change now, maybe that fixes it. If not, I'll need somebody who can reproduce the issue to try and debug this locally, I honestly don't think there's anything more I can do at this point.

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

@WerWolv is that the nightly for x86 macos?

from imhex.

alexdetrano avatar alexdetrano commented on June 23, 2024

I also had the damaged app message on my MacBook pro 2019 x86-64 (Sonoma 14.3.1). I ran the command from @ragnar76 to remove the file from quarantine and now I can run ImHex without any issue.

xattr -r -d com.apple.quarantine /Applications/imhex.app/

from imhex.

ragnar76 avatar ragnar76 commented on June 23, 2024

@alexdetrano thats a workaround and not really a fix. The question is, why does Macos put imhex into quarantine (maybe for the mac guys here easy, i'm not a mac guy) and what could be a solution?

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

@alexdetrano thats a workaround and not really a fix. The question is, why does Macos put imhex into quarantine (maybe for the mac guys here easy, i'm not a mac guy) and what could be a solution?

I'm heavily a mac user including driver development and I wasn't able to figure it out in 2-3 hours of reading and exploring. I dont have xcode setup to really dive deeply into the testing apps since I do all my work with clang but it is a weird one and only seems to be a problem on Ventura. It's obviously a gatekeepr behavior change but why exactly it's not obvious at all.

from imhex.

WerWolv avatar WerWolv commented on June 23, 2024

Have you tested the latest nightly build again?
I made some changes a few days ago that, at least for me, made it work fine on my M2 under Rosetta again.

I still find it extremely odd behavior that it would work when emulated on ARM but not on a real Intel machine

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

I have not tested the nightly. I will try that now. Also just realised I can run the binary at ImHex.app/Contents/MacOs/imhex just fine but not the app at the top level itself.....

It is extremely weird indeed.

from imhex.

McFacePunch avatar McFacePunch commented on June 23, 2024

Checked the nightly artifact for arm and it's working perfectly now! Closing issue

from imhex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.