https://github.com/youngdynasty/go-swift
A sample project integrating Go code within Swift
https://github.com/youngdynasty/go-swift
golang golang-examples macos swift swift-examples
Last synced: about 1 year ago
JSON representation
A sample project integrating Go code within Swift
- Host: GitHub
- URL: https://github.com/youngdynasty/go-swift
- Owner: youngdynasty
- Created: 2019-01-10T20:06:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T21:56:28.000Z (over 7 years ago)
- Last Synced: 2025-04-09T22:51:37.028Z (about 1 year ago)
- Topics: golang, golang-examples, macos, swift, swift-examples
- Language: Swift
- Homepage: https://youngdynasty.net/posts/writing-mac-apps-in-go/
- Size: 4.88 KB
- Stars: 66
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Embedding Go in a Mac App
This repository is a sample project complementing a [blog post](https://youngdynasty.net/posts/writing-mac-apps-in-go/) on writing Mac apps in Go.
## Prerequisites
You should have the latest version of [Xcode](https://developer.apple.com/xcode/) and [Go](https://golang.org) installed on your Mac.
## Known Gotchas
The Go code should build automatically as a dependency within the project. However, often Xcode's cache is too aggressive for external builds and can get out of sync.
If you run into any problems, run `make` or build the `libhtmlescaper` target in Xcode manually.
Interestingly enough, building with `xcodebuild` always works, so it's likely a bug within _Xcode.app_. 🐛
- - -
(c) 2019 [Young Dynasty](https://youngdynasty.net)