Skip to content

A sample project integrating Go code within Swift

Notifications You must be signed in to change notification settings

youngdynasty/go-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedding Go in a Mac App

This repository is a sample project complementing a blog post on writing Mac apps in Go.

Prerequisites

You should have the latest version of Xcode and Go 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