mirror of
https://github.com/golang/go
synced 2024-11-13 17:00:22 -07:00
869c02ce1f
Update the README to mention the emulator. Remove reference to gomobile while here; there are multiple ways to develop for iOS today, including using the c-archive buildmode directly. Updates #38485 Change-Id: Iccef75e646ea8e1b9bc3fc37419cc2d6bf3dfdf4 Reviewed-on: https://go-review.googlesource.com/c/go/+/255257 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Elias Naur <mail@eliasnaur.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
21 lines
626 B
Bash
Executable File
21 lines
626 B
Bash
Executable File
#!/bin/sh
|
|
# This uses the latest available iOS SDK, which is recommended.
|
|
# To select a specific SDK, run 'xcodebuild -showsdks'
|
|
# to see the available SDKs and replace iphoneos with one of them.
|
|
if [ "$GOARCH" == "arm64" ]; then
|
|
SDK=iphoneos
|
|
PLATFORM=ios
|
|
CLANGARCH="arm64"
|
|
else
|
|
SDK=iphonesimulator
|
|
PLATFORM=ios-simulator
|
|
CLANGARCH="x86_64"
|
|
fi
|
|
|
|
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
|
|
export IPHONEOS_DEPLOYMENT_TARGET=5.1
|
|
# cmd/cgo doesn't support llvm-gcc-4.2, so we have to use clang.
|
|
CLANG=`xcrun --sdk $SDK --find clang`
|
|
|
|
exec "$CLANG" -arch $CLANGARCH -isysroot "$SDK_PATH" -m${PLATFORM}-version-min=10.0 "$@"
|