Giter Site home page Giter Site logo

golang-arm64-darwin-jailbroken's People

Contributors

mcapollo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

golang-arm64-darwin-jailbroken's Issues

how to fix the problem signal:killed or killed:9

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.

How to use ?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.