Files
telegram-tui/scripts/check-ios-tdlib-linking.sh
2026-05-20 23:04:03 +03:00

15 lines
409 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [[ -z "${DEVELOPER_DIR:-}" && -d /Applications/Xcode.app/Contents/Developer ]]; then
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
fi
target="${IOS_RUST_TARGET:-aarch64-apple-ios-sim}"
if ! rustup target list --installed | grep -qx "${target}"; then
rustup target add "${target}"
fi
cargo build -p tele-ios-ffi --target "${target}" --release