Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

File is damaged and cant be opened M3 Pro Macos Sonoma #49

Closed
DerpcatMusic opened this issue Nov 2, 2024 · 2 comments
Closed

File is damaged and cant be opened M3 Pro Macos Sonoma #49

DerpcatMusic opened this issue Nov 2, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested

Comments

@DerpcatMusic
Copy link

tried the last 3 versions, none of them worked and show as damaged

@Thavarshan
Copy link
Owner

Thavarshan commented Nov 2, 2024

Hiya @DerpcatMusic! sorry for the late response.

Yeah this issue happens because Apple has increased restriction with Gatekeeper on the newer versions of MacOS. Luckily, there is a way to still make it work.

  1. Open Terminal:

    • You can open Terminal from the Applications > Utilities folder, or press Cmd + Space, type "Terminal," and hit Enter.
  2. Navigate to the App Location:

    • Use the cd command to go to the folder where your app is located. For example, if the app is in the Downloads folder, you would type:
      cd ~/Downloads
  3. Remove the Quarantine Attribute:

    • Run the following command, replacing Comet.app with the actual name of your app:
      xattr -d com.apple.quarantine Comet.app
    • This removes the quarantine flag that macOS automatically sets on downloaded applications, which is what blocks it from opening.
  4. Open the App:

    • Now that the quarantine attribute has been removed, you should be able to open the app by double-clicking it in Finder.

Alternative: If You’re Using a Path

If your app is in a custom location or has spaces in the name, you may want to use the full path. Here’s an example:

xattr -d com.apple.quarantine "~/Downloads/Comet.app"

Verification

You can check if the quarantine attribute was successfully removed by running:

xattr Comet.app

If com.apple.quarantine no longer appears in the output, the quarantine flag has been successfully removed.

Let me know if you run into any more issues!

@Thavarshan Thavarshan self-assigned this Nov 2, 2024
@DerpcatMusic
Copy link
Author

DerpcatMusic commented Nov 3, 2024 via email

@Thavarshan Thavarshan added documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested labels Nov 4, 2024
@Thavarshan Thavarshan pinned this issue Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants