Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IOS cmake command in docs #5909

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion doc/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
Loading