Navigation Menu

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

cacao 0.3.0 doesn't compile for iOS #36

Closed
Miha-Rozina opened this issue Jul 20, 2022 · 4 comments
Closed

cacao 0.3.0 doesn't compile for iOS #36

Miha-Rozina opened this issue Jul 20, 2022 · 4 comments

Comments

@Miha-Rozina
Copy link

Miha-Rozina commented Jul 20, 2022

I get the following error after upgrading cacao to the latest version.

error[E0308]: mismatched types
--> .../cacao-0.3.0/src/image/image.rs:211:26
|
211 | false => {
| _________^
212 | | #[cfg(target_os = "macos")]
213 | | panic!("SFSymbols are only supported on macOS 11.0 and up.")
214 | | }
| |
^ expected *-ptr, found ()
|
= note: expected raw pointer *mut Object
found unit type ()

@ryanmcgrath
Copy link
Owner

Hmmm, are you trying to construct an Image here? At first I though this issue was a duplicate that'd be solved by #46, but now I suspect you're trying to do something that's not supported on iOS yet.

Have a code block I could glance at?

@ryanmcgrath
Copy link
Owner

#49 should have fixed this, I think - curious if it takes care of your issue~

@ryanmcgrath
Copy link
Owner

Closing this for now as I can't reproduce this - but if you (or anyone) can, feel free to comment and I can take another look~

@Miha-Rozina
Copy link
Author

I think the problem was just me not noticing that with cacao 3+ you need to enable uikit feature for ios development.

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

2 participants