From 624b296fa4838865e2a4aaec1473e65bf902322e Mon Sep 17 00:00:00 2001 From: NanoTech Date: Sat, 25 Feb 2017 16:15:10 -0600 Subject: [PATCH] Add a step to remove @NSApplicationMain --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f78d6f4..484e3d1 100644 --- a/README.md +++ b/README.md @@ -237,6 +237,12 @@ included in SwiftAppLibrary: ![Target Membership](tutorial/xcode-target-membership.png) +In `AppDelegate.swift`, remove the `@NSApplicationMain` +attribute from the `AppDelegate` class, as we don't want an +auto-generated `main` function in our framework. We will +implement an equivalent way to start Cocoa later, to be called +from the Haskell executable's `main`. + Xcode will place the built framework in a temporary directory (`~/Library/Developer/Xcode/DerivedData/`) with an unpredictable subpath. So that Cabal will be able to find the framework for