btleplug
btleplug copied to clipboard
Linker error since rustc version 1.65.0 for iOS target
Describe the bug
When compiling a project for the target aarch64-apple-ios or x86_64-apple-ios featuring this library with rustc version 1.65.0 or greater I get the following error:
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-Wl,
[... following an endless list of directories ...]
= note: ld: framework not found AppKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Current work-around Compiling with rustc version 1.64.0 works just fine.
Should be fixed with https://github.com/deviceplug/btleplug/pull/302
Were you using nix by any chance? I'm doing so on darwin with devenv and found that the issue was fixed by including the following packages in my dev shell:
- pkgs.darwin.apple_sdk.frameworks.AppKit
- pkgs.darwin.apple_sdk.frameworks.CoreBluetooth
Were you using nix by any chance?
Good to know! No I use homebrew so I can't confirm ...