Here are the steps I took to compile the syrius code for mac. After hours of failed attempts, I changed the mac to one with an intel processor. I was NEVER able to build a stable version of syrius on the M1 processor. So I can confirm these steps ONLY work with a Mac intel processor.
Steps were derived from this source: macOS install | Flutter
Create a working folder for Flutter
mkdir ~/development && cd ~/development
Download the latest Flutter SDK to the
~/development folder. Check the link to make sure you are downloading the latest version
Extract the file in the desired location
flutter tool to your path
flutter to your path
You can update your PATH variable for the current session at the command line, as shown in Get the Flutter SDK. You’ll probably want to update this variable permanently, so you can run
flutter commands in any terminal session.
The steps for modifying this variable permanently for all terminal sessions are machine-specific. Typically you add a line to a file that is executed whenever you open a new window. For example:
Determine the path of your clone of the Flutter SDK. You need this in Step 3.
Open (or create) the
rcfile for your shell. Typing
echo $SHELLin your Terminal tells you which shell you’re using. If you’re using Bash, edit
$HOME/.bashrc. If you’re using Z shell, edit
$HOME/.zshrc. If you’re using a different shell, the file path and filename will be different on your machine.
Add the following line and change
[PATH_OF_FLUTTER_GIT_DIRECTORY]to be the path of your clone of the Flutter git repo:
source $HOME/.<rc file>to refresh the current window, or open a new terminal window to automatically source the file.
Verify that the
flutter/bindirectory is now in your PATH by running:
Verify that the
flutter command is available by running:
Download and install Xcode
Configure the Xcode command-line tools to use the newly-installed version of Xcode by running the following from the command line:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch
Run flutter doctor
Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install cocoapods
Source: cocoapods — Homebrew Formulae
Create Working Directory for Project
mkdir ~/zenon && cd zenon
Clone Repo and Build App
git clone https://github.com/zenon-network/syrius.git cd syrius flutter build macos --release
Download and install the missing dylib files from the Syrius repo
cd ~/zenon/syrius/build/macos/Build/Products/Release/s y r i u s.app/Contents/Resources
Download the following missing files to this directory.
These files can be downloaded from the link below. Or, you can download the official .dmg build of the app and download these files from the official app. They can be found here:
s y r i u s.app/Contents/Resources in the .dmg
double click the app
s y r i u s.app