Skip to content

Commit f7f56a9

Browse files
Readme: updated iOS simulator build instructions
1 parent 082388b commit f7f56a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ In particular, you may need to define the following environment variables (assum
354354
export VULKAN_SDK=/Users/MyName/VulkanSDK/1.3.268.1/macOS
355355
export PATH=$VULKAN_SDK/bin:$PATH
356356
export DYLD_LIBRARY_PATH=$VULKAN_SDK/lib:$DYLD_LIBRARY_PATH
357+
export VK_ADD_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.d
357358
export VK_ICD_FILENAMES=$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json
358-
export VK_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.d
359+
export VK_DRIVER_FILES=$VULKAN_SDK/share/vulkan/icd.d/MoltenVK_icd.json
359360
```
360361

361362
Note that environment variables set in the shell are not seen by the applications launched from Launchpad
@@ -400,11 +401,11 @@ If needed, you can provide iOS deployment target (13.0 or later is required) as
400401
cmake -S . -B ./build/iOS -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=13.0 -G "Xcode"
401402
```
402403

403-
:warning: To build for iPhone simulator, set the `PLATFORM_IOS_SIMULATOR` CMake flag. You may also use the
404+
:warning: To build for iPhone simulator, use the `iphonesimulator` system root. You may also use the
404405
`CMAKE_OSX_ARCHITECTURES` variable to specify target architecture, for example:
405406

406407
```cmake
407-
cmake -S . -B ./build/iOSSim -DCMAKE_SYSTEM_NAME=iOS -DPLATFORM_IOS_SIMULATOR=ON -DCMAKE_OSX_ARCHITECTURES=arm64 -G "Xcode"
408+
cmake -S . -B ./build/iOSSim -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=arm64 -G "Xcode"
408409
```
409410

410411
Open Xcode project file in `build/IOS` folder and build the engine. To run the applications on an iOS device,

0 commit comments

Comments
 (0)