Код: Выделить всё
GOOS=ios GOARCH=arm64 CGO_ENABLED=1 SDK=iphonesimulator CGO_CFLAGS="-fembed-bitcode" CC=Код: Выделить всё
/clangwrap.sh go build -buildmode=c-archive -o libuplink.aКод: Выделить всё
#!/bin/sh
# go/clangwrap.sh
SDK_PATH=`xcrun --sdk $SDK --show-sdk-path`
CLANG=`xcrun --sdk $SDK --find clang`
if [ "$GOARCH" == "amd64" ]; then
CARCH="x86_64"
elif [ "$GOARCH" == "arm64" ]; then
CARCH="arm64"
fi
exec $CLANG -arch $CARCH -isysroot $SDK_PATH -mios-version-min=10.0 "$@"
Код: Выделить всё
building for iOS Simulator, but linking in object file built for iOS ... for architecture arm64
Подробнее здесь: https://stackoverflow.com/questions/750 ... -simulator
Мобильная версия