Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on MacOS objc2::foundation not found #101

Closed
mikedilger opened this issue Dec 30, 2022 · 3 comments
Closed

Cannot build on MacOS objc2::foundation not found #101

mikedilger opened this issue Dec 30, 2022 · 3 comments

Comments

@mikedilger
Copy link
Owner

From 0xtr:

Yeah, several of them. E.g:

error[E0432]: unresolved import `objc2::foundation`
 --> /Users/oxtr/.cargo/registry/src/github.com-1ecc6299db9ec823/accesskit_macos-0.3.0/src/appkit/responder.rs:6:27
  |
6 | use objc2::{extern_class, foundation::NSObject, ClassType};
  |                           ^^^^^^^^^^ could not find `foundation` in `objc2`

All of them are related to the objc2 crate it seems, not sure which dependency this comes from though. Probably egui related dependencies?

I wanted to make a github issue for it but the error output is huge and contains my IRL name in the paths so I have to sanitize it before publishing it. Haven’t had time to do that today.

@mikedilger
Copy link
Owner Author

egui requires eframe requires egui-winit which requires accesskit_winit which requires accesskit_macos which is not building. The Cargo.lock requires version 0.3.0. A version 0.4.0 was released two days ago. cargo update could move it to 0.4.0 but might not fix the problem.

@mikedilger
Copy link
Owner Author

Probably this:

AccessKit/accesskit#199

@mikedilger
Copy link
Owner Author

I'm going to consider this closed. I think cargo update brought in a new version of accesskit_macos, which reverted to an older version of the objc beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant