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

Failed to compile for ios due to run_return #1271

Closed
2 tasks done
wooden-worm opened this issue Mar 2, 2022 · 1 comment
Closed
2 tasks done

Failed to compile for ios due to run_return #1271

wooden-worm opened this issue Mar 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@wooden-worm
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

run_return doesn't exist on multiple platforms, including ios: https://github.com/iced-rs/winit/blob/1e6623c4d06d110e5408dcbdf1edebd07e6a200e/src/platform/run_return.rs#L1

Currently in

use winit::platform::run_return::EventLoopExtRunReturn;
iced only excludes wasm32 from run_return, making iOS and all other platforms without run_return failed to compile.

Solution: change the cfg_if to match what's in wininit

What is the expected behavior?

iced should compile on all platforms

Version

master

Operative System

macOS

Do you have any log output?

No response

@wooden-worm wooden-worm added the bug Something isn't working label Mar 2, 2022
@hecrj
Copy link
Member

hecrj commented Mar 2, 2022

Duplicate of #1186. We do not officially support iOS.

That said, I believe #1196 should fix the problem once merged.

@hecrj hecrj closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants