Skip to content

Commit c35b537

Browse files
Added instructions for building/running project on M1 macs
1 parent 4bb96da commit c35b537

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ It is also possible to build the projects from the CLI using this command:
8989

9090
`dotnet build -c Release`
9191

92+
### How to build on osx-arm64 (such as M1)
93+
94+
The project depends on the `System.Data.SQLite` package which is not yet supported on osx-arm64. To build and run tests
95+
on osx-arm64 you need to use the osx-x64 architecture instead. To do so:
96+
1. Build Unity on your target platform:
97+
`./jam MacEditor` (the target MacEditor builds for the osx-x64 platform)
98+
2. Copy UnityFIleSystemApi.dylib to the `UnityDataTools/UnityFileSystem` folder
99+
3. To verify the setup in a terminal, run `dotnet test -r osx-x64` in the `UnityDataTools/UnityFileSystem.Tests` folder
100+
4. Configure your IDE test runner to use target architecture x64
101+
92102
## Disclaimer
93103

94104
This project is provided on an "as-is" basis and is not officially supported by Unity. It is an

0 commit comments

Comments
 (0)