From 33e765455c395165c5efd22788434ed427c477b8 Mon Sep 17 00:00:00 2001 From: HALX99 Date: Sat, 8 Feb 2020 21:55:36 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4e79bd2d7..60eb15e1fa 100644 --- a/README.md +++ b/README.md @@ -125,12 +125,12 @@ _USRSTUDIOPDLL brew install libtool ``` 执行如下命令确保cmake能成功生成xcode工程: - ```sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer``` + ```sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer``` 生成xcode工程, 进入engine-v5根目录执行如下命令: ```sh mkdir 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打开了