浏览代码

[cocos2dx] Update README.md for M1.

Mario Zechner 3 年之前
父节点
当前提交
d890eed2dc
共有 1 个文件被更改,包括 3 次插入1 次删除
  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
 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
 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`.
 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
 ### iOS
 Execute the following on the command line:
 Execute the following on the command line: