Merge pull request #47 from c4games/ios-build-guides

Update README.md
This commit is contained in:
HALX99 2020-02-08 22:33:14 +08:00 committed by GitHub
commit e698c3ed81
1 changed files with 2 additions and 2 deletions

View File

@ -125,12 +125,12 @@ _USRSTUDIOPDLL
brew install libtool brew install libtool
``` ```
执行如下命令确保cmake能成功生成xcode工程: 执行如下命令确保cmake能成功生成xcode工程:
```sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer``` ```sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer```
生成xcode工程, 进入engine-v5根目录执行如下命令: 生成xcode工程, 进入engine-v5根目录执行如下命令:
```sh ```sh
mkdir build mkdir build
cd build cd build
cmake .. -GXcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DCMAKE_SYSTEM_NAME=iOS -DPLATFORM=OS -DENABLE_ARC=0 cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator
``` ```
之后就可以用xcode打开了 之后就可以用xcode打开了