-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
When compiling for specific target, e.g. aarch64-apple-ios
or x86_64-apple-ios
, I would get an error message stating that the function call bind_device
inside tcp.rs:287:20 doesn't exist, and suggested to use similar name matching bind_device_by_index()
instead.
What I'm trying to do is build a library communication between iOS and MacOS using message-io. This is stopping me from building a library build for iOS platform.
However, this doesn't stop me from making a build for MacOS natively. Would love to know if there's a workaround solution to this problem? Thanks in advance,
Error message below:
error[E0599]: no method named 'bind_device' found for struct 'Socket' in the current scope
--> /Users/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/message-io-0.18.2/src/adapters/tcp.rs:287:20
|
287 | socket.bind_device(Some(device.as_bytes()))?;
| ^^^^^^^^^^^
|
help: there is a method 'bind_device_by_index' with a similar name
|
287 | socket.bind_device_by_index(Some(device.as_bytes()))?;
| ~~~~~~~~~~~~~~~~~~~~
For more information about this error, try 'rustc --explain E0599'.
error: could not compile 'message-io' (lib) due to 2 previous errors
MacBook Air M2 | 8 GB | Sonoma 14.5
Metadata
Metadata
Assignees
Labels
No labels