From ba165b5248226989c6935e1ecac4cbff75eabe95 Mon Sep 17 00:00:00 2001 From: Wouter Goedhart Date: Mon, 23 Dec 2024 09:26:15 +0100 Subject: [PATCH] Update IOS cmake command in docs --- doc/dev.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/dev.md b/doc/dev.md index 18d8775431..c3b27267dc 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -213,18 +213,31 @@ xcodebuild -downloadPlatform iOS export PATH="$(brew --prefix flex)/bin:$(brew --prefix bison)/bin:$PATH" # Configure using CMake +# +# In the command below, the following line depends on the host system, i.e. the system +# you are building on. In case you are building on a x64 (Intel) based system instead of +# an Apple Silicon-based system (M1/M2/..), change this line: +# +# -DVCPKG_HOST_TRIPLET=arm64-osx \ +# +# into +# +# -DVCPKG_HOST_TRIPLET=x64-osx \ +# cmake -S . -B build-arm64-ios \ + -DVCPKG_HOST_TRIPLET=arm64-osx \ -DVCPKG_TARGET_TRIPLET=arm64-ios \ -DWITH_VCPKG=ON \ -DVCPKG_BUILD_TYPE=release \ -DCMAKE_SYSTEM_NAME=iOS \ -DCMAKE_OSX_SYSROOT=iphoneos \ -DCMAKE_OSX_ARCHITECTURES=arm64 \ - -DCMAKE_SYSTEM_PROCESSOR=aarch64 \ + -DCMAKE_SYSTEM_PROCESSOR=aarch64 \ -GXcode # Then, compile. To install an app on iOS, it must be signed using Xcode tools. + cmake --build build-arm64-ios ```