Skip to content
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

Not working at all #13

Open
duckfromdiscord opened this issue Apr 4, 2023 · 2 comments
Open

Not working at all #13

duckfromdiscord opened this issue Apr 4, 2023 · 2 comments

Comments

@duckfromdiscord
Copy link

duckfromdiscord commented Apr 4, 2023

for apple-bindgen not apple-sys

apple-bindgen --sdk /Users/user/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk CoreHaptics
/Users/user/ch2/CoreHaptics.h:1:9: fatal error: could not build module 'CoreHaptics'
thread 'main' panicked at 'binding generation failed: ClangDiagnostic("/Users/user/ch2/CoreHaptics.h:1:9: fatal error: could not build module 'CoreHaptics'\n")', /Users/user/.cargo/registry/src/github.com-x/apple-bindgen-0.2.0/src/main.rs:69:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@youknowone
Copy link
Owner

Did you check example commands? https://github.com/youknowone/apple-sys#apple-bindgen

I can see both commands working:

  • apple-bindgen --sdk iphoneos CoreHaptics
  • apple-bindgen --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk CoreHaptics

If you still have problem, please share OS version, xcode version and the rust backtrace.
Though apple-sys is very fragile by sdk change, your case doesn't seem one of them.

@duckfromdiscord
Copy link
Author

@youknowone Thank you for the help 🙂

Yeah, those don't seem to work for me, but I'm also having an issue with bindgen that I'm going to go post on their GitHub right now. I wonder if it's related to that.

I was in a rush that day [hence why my issue didn't have much detail, sorry!] so I forgot to mention that, strangely, apple-sys worked just fine while apple-bindgen didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants