Closed 0407-zh closed 1 year ago
Thanks for reporting that, but I'm not a macOS user so I have no idea how to get the right libffi installed. I wonder if installing Stack using https://www.haskell.org/ghcup/ might work more reliably?
I found a solution. Diagnosed and fixed with help from the ghcup devs here: https://github.com/haskell/ghcup-hs/issues/814
The problem was that I had not re-installed Xcode command line tools after a recent macOS or Xcode software update.
This was fixed by installing the command line tools: xcode-select --install
This ensured that the expected symlink was in place at /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
stack build was then able to succeed.
While attempting to execute the stack build command to build the project on an Apple Silicon macOS system, I encountered the following issue:
The issue of the missing libffi library occurs in multiple places.
This issue is caused by the missing libffi library. libffi is a cross-platform foreign function interface library used for calling functions compiled to native code.
I have installed libffi on macOS using Homebrew and added the include directory of libffi to the project's stack.yaml file, but I still encountered the same issue. How can I resolve this problem?
Thank you!