-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: 'CoreServices/CoreServices.h' file not found OS X Catalina #14
Comments
I got there with: Apologies for this being a Nix-only solution, but it should give you some idea. |
Does anyone still see this problem? I've never encountered it (I get my GHC installs from GHCup usually). |
I still see this, but I don't only see this in haskell, but in other languages for similar packages too, so I think it's an environment problem. And the solution with nix shell works for me still. |
I'm still interested in learning how to reproduce this, since I don't see it here with my ghcup based install. |
I believe this is related to the fact that I never installed xcode. When looking for similar errors online, they all are resolved by installing xcode/command line tools or running xcode-select. Examples:
|
I have the same error on macOS Sonoma 14.6.1. I'm using nix flakes. Following the tips above, I have solved my problem by putting the following in my
Here,
That's alright — I think that the problem has to do with the installation of the MacOS SDKs. When starting XCode 15 for the first time, you'll get a question whether you want to install additional tools. If you answer "yes", and select "MacOS", then you'll eventually end up with the latest version of the SDKs installed here: |
I am facing an above issue when running
cabal install hfsevents
. This is very similar to #3Error message I get:
I have Xcode freshly installed and I am able to locate header file at
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
but defining this env var (in my .zshrc) like this doesn't help
UPD: log of cabal install with -v3 https://pastebin.com/FDygnfQB
The text was updated successfully, but these errors were encountered: