mcapollo / golang-arm64-darwin-jailbroken Goto Github PK
View Code? Open in Web Editor NEWShoutout to minux for making cross-compiling golang easier.
Shoutout to minux for making cross-compiling golang easier.
iphone 6s 128g
ios 12.1.4, jb by unc0ver
I fix the go env
as appending
export GOROOT=/usr/local/libexec/go
export PATH=$GOROOT/bin:$PATH
export GOPATH=/var/mobile/gosrc
export CC=clang
export CXX=clang++
export CGO_ENABLED=1
export GOPROXY=https://goproxy.io
to /var/profile
and running source /var/profile
GOARCH="arm64"
GOBIN=""
GOCACHE="/var/mobile/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/var/mobile/gosrc"
GOPROXY="https://goproxy.io"
GORACE=""
GOROOT="/usr/local/libexec/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/libexec/go/pkg/tool/darwin_arm64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build228380621=/tmp/go-build -gno-record-gcc-switches -fno-common"
However, I wrote a "hello world" program and built it successful, but ran it failed.
# go run a.go
signal: killed
# go build a.go
# ./a
Killed: 9
By searching on net, I think it course by memory not enough.
# sysctl vm.swapusage
vm.swapusage: total = 256.00M used = 45.75M free = 210.25M (encrypted)
iOS 12.1.4 use the swapfile by default.
I found here are two files in /var/vm/
:
/private/var/vm/swapfile1
/private/var/vm/swapfile0
I have no idea to improve my swap memory, any one can help me?
Thanks a lot.
when i run go build
the screen appear go tool compile: signal: killed
Very nice project, I've been searching the web for 2 hours and couldn't find anything about compiling Golang for darwin/arm64
.
Can you provide information on how to setup ? It looks like I could make it work by following the steps inside /buildscript-ios.sh
and applying the diff files inside patches
and final patches
. Can you confirm ?
Thanks a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.