Browse Source

[cocos2dx] Update README.md for M1.

Mario Zechner 3 years ago
parent
commit
d890eed2dc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      spine-cocos2dx/README.md

+ 3 - 1
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: