You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I can not test this in an IOS, but I think the solution goes in that direction. If you finally get this working, I'll love to merge a PR with this solution.
When compiling for specific target, e.g.
aarch64-apple-ios
orx86_64-apple-ios
, I would get an error message stating that the function callbind_device
inside tcp.rs:287:20 doesn't exist, and suggested to use similar name matchingbind_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:
MacBook Air M2 | 8 GB | Sonoma 14.5
The text was updated successfully, but these errors were encountered: