DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Apple could not verify “dsc” is free of malware

Open NukaCody opened this issue 9 months ago • 1 comments

Summary of the new feature / enhancement

Apple doesn't like binaries not notarized so ./dsc will not launch on MacOS. This is after downloading the release files via github.

Proposed technical implementation details (optional)

From Claude:

This error message is appearing because macOS's security features (Gatekeeper) are preventing the DSC executable from running because it hasn't been notarized by Apple. This is a common security protection on newer macOS versions.

Here's how to resolve this issue:

Method 1: Using System Preferences (recommended)

  1. Instead of clicking "Move to Trash", click "Done"
  2. Open System Preferences (or System Settings on newer macOS)
  3. Go to "Security & Privacy" or "Privacy & Security"
  4. In the "General" tab, you should see a message about "dsc" being blocked
  5. Click "Allow Anyway" or "Open Anyway"
  6. Try running the DSC command again, and you'll get a prompt asking if you're sure - click "Open"

Method 2: Using Terminal to bypass Gatekeeper for this specific app

  1. Open Terminal
  2. Run the following command (assuming the DSC tool is in your downloads folder):
    xattr -d com.apple.quarantine /path/to/dsc
    
    Replace "/path/to/dsc" with the actual path to the DSC executable

Method 3: Temporarily reduce security settings (not recommended)

If you're still having issues, you can temporarily allow apps from anywhere:

  1. Open Terminal
  2. Run: sudo spctl --master-disable
  3. Use the app
  4. Re-enable security: sudo spctl --master-enable

The first method is usually the safest and most straightforward. After allowing the app once, you shouldn't see this warning again for this particular application.

NukaCody avatar Mar 15 '25 00:03 NukaCody

This is also true for runcommandonset

NukaCody avatar Mar 15 '25 02:03 NukaCody