From d890eed2dcb230cceb547ac76d1b672554d301d1 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 15 Sep 2022 08:32:44 +0200 Subject: [PATCH] [cocos2dx] Update README.md for M1. --- spine-cocos2dx/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spine-cocos2dx/README.md b/spine-cocos2dx/README.md index 7c3a0b643..a025533b8 100644 --- a/spine-cocos2dx/README.md +++ b/spine-cocos2dx/README.md @@ -68,12 +68,14 @@ Execute the following on the command line: ``` cd spine-runtimes/spine-cocos2dx/example -mkdir build-macos && cmake . -GXcode -Bbuild-macos +mkdir build-macos && cmake . -GXcode -Bbuild-macos -DCMAKE_OSX_ARCHITECTURES=x86_64 open build-macos/spine-cocos2dx-example.xcodeproj ``` This will generate an Xcode project in `build-macos/spine-cocos2dx-example.xcodeproj` and open it in Xcode. To build and run the example, select the `spine-cocos2dx-example` scheme and press `CMD + R`. +> **NOTE:** Passing `-DCMAKE_OSX_ARCHITECTURES=x86_64` to CMake is currently required, as Cocos2d-X only provides prebuilt x86_64 binaries for its external dependencies. + ### iOS Execute the following on the command line: