BSSID not found error on newer macos
andrewdavidmackenzie opened this issue · 3 comments
This error seems to have appeared, since I upgraded to macos Sonoma 14.4.1
cargo run --example scan
warning: An explicit [[bin]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other binary targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a binary target:
* /Users/andrew/workspace/wifiscanner/src/bin/main.rs
This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a binary target today. You can future-proof yourself
and disable this warning by adding `autobins = false` to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.
For more information on this warning you can consult
https://github.com/rust-lang/cargo/issues/5330
warning: path `/Users/andrew/workspace/wifiscanner/src/bin/main.rs` was erroneously implicitly accepted for binary `wifiscanner`,
please set bin.path in Cargo.toml
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running `target/debug/examples/scan`
Err(HeaderNotFound("BSSID"))
uname -a
Darwin amackenz-mac 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64
Tests pass though, so maybe if we do find a bug on this version we need to add a test also.
@andrewdavidmackenzie Apple deprecated airport
binary that this crate uses.
discovered that as I was also using it directly.
I thought I added that to this issue but seems not or didn't hit "save" :-(
Either way, I guess I'll just have to rework my binary to use networksetup or wdutil (requires sudo :-( ) directly, and skip this crate.
Maybe worth an addition to the readme to explain for newer macos versions or mark as unmaintained/deprecated?
I created a small wifi-scanner in Objective-C that works. Maybe this could be used instead of the deprecated MacOS tool?
#https://github.com/MarcMouries/wifi-scanner