Installing v2rayN on macOS: dmg versus zip

Both downloads contain the same app but behave differently. Includes the correct fix for "app is damaged and can't be opened".

macOSJan 14, 20263 min read

The macOS build ships as both .dmg and .zip. The application inside is identical — the difference is packaging, and that difference decides whether Gatekeeper gets in your way.

Which one to take

.dmg.zip
What it isA disk image that mounts as a virtual volumeAn ordinary archive that expands in place
Install actionDrag the icon into the Applications folderMove the .app wherever you want it
Best forA normal first installCustom locations or a quick trial
CleanupEject and delete the dmg afterwardsDelete the archive afterwards

Take the .dmg unless you have a reason not to. The flow is more standard, and you avoid the classic "left it in Downloads and deleted it during a cleanup" problem.

The standard install

  1. Download the right architectureApple Silicon (M-series) takes arm64; Intel machines take 64. The wrong one either refuses to launch or runs through translation with a performance penalty.
  2. Double-click the dmgA window opens containing the app icon and a shortcut to Applications.
  3. Drag it into ApplicationsDo not run it from the mounted volume.
  4. Eject the imageUse the eject button in the Finder sidebar, then delete the dmg.
  5. First launchOpen it from Launchpad or Applications. If macOS blocks it, see below.

"The app is damaged and can't be opened"

This is macOS's most common false alarm. The file is not damaged — the app simply is not notarised by Apple, and the download picked up a quarantine attribute.

If right-click Open still reports damage, the quarantine attribute has to go manually:

Remove the quarantine flag (Terminal)
sudo xattr -rd com.apple.quarantine /Applications/v2rayN.app

# inspect which attributes a file carries
xattr -l /Applications/v2rayN.app

First-run configuration

  1. Import servers: paste a share link into the app, or add a subscription URL and refresh.
  2. Select one server and run a real-delay test to confirm it works.
  3. Turn on the system proxy. The first time, macOS asks for your administrator password.
  4. Confirm in a browser that your exit IP has changed.
1Rightarchitecturearm64 or 642Into ApplicationsNot from the dmg3Right-click OpenClears Gatekeeper4Import + proxy onAdmin password needed
Zero to working on macOS

Uninstalling

Dragging the .app to the Trash leaves configuration and caches behind in your home folder. For a full removal:

Complete uninstall
# 1. turn off the system proxy in the app and quit properly
# 2. remove the application
rm -rf /Applications/v2rayN.app

# 3. check what is left in your user library before deleting
ls -la ~/Library/Application\ Support/ | grep -i v2ray