mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[cocos2dx] Update README.md for M1.
This commit is contained in:
parent
34534d0e90
commit
d890eed2dc
@ -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:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user