-
Notifications
You must be signed in to change notification settings - Fork 67
Variable to find the SDK directories on macOS #471
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
Comments
@liamappelbe I'm assuming "Backlog" means this isn't on the short-term roadmap currently? This seems like a blocker for adoption in flutter/packages, because any hard-coded path is not guaranteed to work for anyone else, since Xcode can be moved or renamed. Having a variable that |
Ok, I can bump the priority on this one |
Played around with some options. I think we'll want a few different variables:
|
Apple seems to move around it's framework headers. Currently, on my machine, they have paths like:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h
previously they looked like:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h
It would be nice to have a magic variable that can be used in
ffigen.yaml
so that you can write paths like this:$SDK/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSDictionary.h
The text was updated successfully, but these errors were encountered: