Note
Most environment setup tasks can be accomplished by executing the setup-macos.sh script located in the /tools/scripts/
directory by running the following command from within a terminal window at the root of the repository:
./tools/scripts/setup-macos.sh
If you want to do that work manually, please refer to the following:
- The standard Prerequisites for all platforms.
- macOS Device
- Unity macOS build module
- XCode
- Native Libraries
- Required for running Unity Editor
- Required if using RTC (Microphone) functionality
-
Run
Tools -> EOS Plugin -> Build Libraries -> Mac
to build the dylibs needed for the mac build.- Set the path of
make
atEdit -> Preferences -> EOS Plugin -> Platform Library Build Settings -> Make path
- By default the path is
/usr/bin/make
orusr/local/bin/make
- Set the path of
-
Alternatively, manually use the makefile in
lib/NativeCode/DynamicLibraryLoaderHelper_macOS/
by opening the terminal at the folder and running the command:make install
-
If running the plugin in UnityEditor, after modifying the configuration settings, a UnityEditor reboot is needed for the changes to take place.
-
With Unity
2021.3.16f1
on Mac, building while overwriting the old build can cause some weird behavior. Delete the old build or perform a "clean" before compiling in order to avoid this problem.