youknowone/apple-sys

Not working at all

duckfromdiscord opened this issue · 2 comments

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

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.

@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.