DEV Community

Yusuf Adeyemo
Yusuf Adeyemo

Posted on • Originally published at blog.yusadolat.me on

Running Go Program on iOS and iPadOS with iSH

How about Debugging and running your Go Program with your iPhone? Huh, Why Not

In this guide, I will be showing you how to set up a Go Environment on your iOS and iPadOS with iSH.

iSH

image.png

iSH is a Linux-like shell on iOS. You can edit files with sed and cat, move them around, and more!

You can get it here https://apps.apple.com/us/app/ish-shell/id1436902243

Now that you have downloaded the App. Lets do the magic.

Install the Alpine Linux package manager apk: Run

wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

Enter fullscreen mode Exit fullscreen mode

Fetching Alpines repository list: Run apk update

Installing Node.js: apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go

Enter fullscreen mode Exit fullscreen mode

Test to make sure Go is installed by typing go version, you should see something along the lines of

go version go1.13.15 linux/386

Sentry mobile image

App store rankings love fast apps - mobile vitals can help you get there

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read full post →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay