BabylonJS Native iOS

git clone --recursive
cd BabylonNative
cd Apps
npm install


Required Tools: Xcode 11 or newer, Python 3.0 or newer (required by dependencies)

cmake -B build/iOS -G Xcode -D CMAKE_TOOLCHAIN_FILE=Dependencies/ios-cmake/ios.toolchain.cmake -D PLATFORM=OS64COMBINED -D ENABLE_ARC=0 -D DEPLOYMENT_TARGET=12


-- Disabling bitcode support by default on simulators. ENABLE_BITCODE not provided for override!
-- Hiding symbols visibility by default. ENABLE_VISIBILITY not provided!
-- Using NON-strict compiler checks by default. ENABLE_STRICT_TRY_COMPILE not provided!
-- Using C compiler: /Library/Developer/CommandLineTools/usr/bin/clang
-- Using CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
-- Using libtool: /Library/Developer/CommandLineTools/usr/bin/libtool
-- Will combine built (static) artifacts into FAT lib...
CMake Error at /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/Platform/iOS-Initialize.cmake:4 (message):
  iphoneos is not an iOS SDK
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
  CMakeLists.txt:5 (project)

open build/iOS/BabylonNative.xcodeproj



To select which project to build with Xcode, select the correct project name in the menu to the right of the greyed-out Stop button adjacent to the Play button in the top-left corner of the Xcode window. For example, to build and run the Playground demo app, click on the project selector and find Playground in the list of possible selections. The Play button will subsequently allow you to build, run, and debug the selected Babylon Native demo app.


This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility.



BABYLON.SceneLoader.AppendAsync("").then(function () {