In the official repository, after downloading successfully, install directly, ignore all prompts, and do not move it to the trash!
GitHub release: https://github.com/2dust/v2rayN/releases
Find the version suitable for your system. If it's an M-series chip, choose the arm architecture; if it's an Intel chip, choose the amd architecture.
> No need to elaborate on downloading and installing. After installation, it is recommended to read the entire article before proceeding!
## Phenomenon
After installation, opening it directly may prompt that V2rayN is damaged. After following online tutorials to address this, it continued to report errors such as "sing-box" cannot be detected, and it still could not run properly.
Ultimately, the "sing-box" error was resolved using the method below, but it is unclear whether the initial error could also be fixed this way (it is speculated that it can).
## Solution
After installation is complete:
1. In Settings, find "`Privacy & Security`" and open it.
2. Scroll to find "`Developer Tools`" and open it.
3. Under "`Allow applications below that do not meet the system security policy to run on local software`", click the "+" button on the left and enter your password.
4. After entering the password, open the Finder page, find "`Applications`" on the left, and open it.
5. Once opened, locate the successfully installed "`V2rayN`" and confirm.
6. Reopen it, and it should run normally.
This method worked for me. Please test it yourself to see if it is effective!
## Additional Notes
As mentioned earlier, the error "V2rayN is damaged" was resolved first before proceeding with the subsequent settings. If you still encounter the "V2rayN is damaged" error after following these steps, you can try the following method to resolve it:
After installation is complete, open the command terminal and run the following commands:
```bash
# 0. Run the command below. If an error occurs, proceed with the subsequent commands.
# The error message might be: xattr: [Errno 30] Read-only file system: '/Volumes/v2rayN Installer 1/v2rayN.app'
sudo xattr -d com.apple.quarantine /Volumes/v2rayN\ Installer\ 1/v2rayN.app
# 1. Copy the application to the desktop or applications folder (for offline installation, confirm the installation directory of your application).
cp -R /Volumes/v2rayN\ Installer\ 1/v2rayN.app ~/Desktop/
# 2. Remove the quarantine attribute.
sudo xattr -d com.apple.quarantine ~/Desktop/v2rayN.app
# 3. Move it to the /Applications directory.
sudo mv ~/Desktop/v2rayN.app /Applications/
```