btleplug icon indicating copy to clipboard operation
btleplug copied to clipboard

Linker error since rustc version 1.65.0 for iOS target

Open Arwed-M opened this issue 2 years ago • 2 comments

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.

Arwed-M avatar Jan 19 '23 18:01 Arwed-M

Should be fixed with https://github.com/deviceplug/btleplug/pull/302

jhonboy121 avatar Apr 19 '23 14:04 jhonboy121

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:

  1. pkgs.darwin.apple_sdk.frameworks.AppKit
  2. pkgs.darwin.apple_sdk.frameworks.CoreBluetooth

Bradley-Cooley avatar Dec 04 '24 18:12 Bradley-Cooley

Were you using nix by any chance?

Good to know! No I use homebrew so I can't confirm ...

Arwed-M avatar Dec 09 '24 13:12 Arwed-M