"stack build yesod-bin" fails on MacOS 11.0
Summary
More information can be found on this issue that I filed for the yesod
Github repo.
When running stack build yesod-bin
, I get an error. This is the output:
~/D/c/l/h/y/g ❯❯❯ stack build yesod-bin
yesod-bin> configure
yesod-bin> Configuring yesod-bin-1.6.0.6...
yesod-bin> build
yesod-bin> Preprocessing executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> Building executable 'yesod' for yesod-bin-1.6.0.6..
yesod-bin> [1 of 7] Compiling AddHandler
yesod-bin> [2 of 7] Compiling Devel
yesod-bin> <command line>: can't load framework: Cocoa (not found)
-- While building package yesod-bin-1.6.0.6 using:
/Users/enaluz/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
~/D/c/l/h/y/test-app ❯❯❯ stack --version
Version 2.3.3, Git revision cb44d51bed48b723a5deb08c3348c0b3ccfc437e x86_64 hpack-0.33.0
Steps to reproduce
stack new test-app yesodweb/simple && cd test-app && stack build . yesod-bin
Expected behavior
I expected yesod-bin
to build successfully.
Environment
- GHC version used:
The Glorious Glasgow Haskell Compilation System, version 8.8.4
Other helpful information about my machine/environment: https://gist.github.com/enaluz/0e19aefa37ca1b787674ae438db312d7