-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support iOS #41
Support iOS #41
Conversation
I haven't tested this PR, not having an iOS device. @appaquet, can you please have a look if that fixes the problem for you? |
Your branch now compiles when targeting iOS. Could be a good idea to add MacOS and iOS checks in the GitHub actions flow! I didn't test the functionally though, but since it's using core foundation for both iOS and MacOS, it should be fine in both sets of targets. |
Would you be able to test if it actually works? I don't have any iOS devices, so I can't. I guess we could simply assume it works, if we could actually test it, well, that would be better. :) No iOS target is supported by cross: https://github.com/strawlab/iana-time-zone/runs/7472202395?check_suite_focus=true, so I don't know how I could add a test. If you do, please tell. |
I'll try to test this later in my project. Yeah, you can't really cross compile to iOS with cross since it needs the toolchains to do so, which are available on MacOS with Xcode, but you can't redistribute them. You can actually compile for iOS on GitHub actions though (they have macos runners), but you won't be able to run your tests since you need to wrap it into an application to run it in a simulator. |
Ah, thanks for the information. It does cross compile fine on a macOS-12 runner. |
The tests run on macOS, including automatically by Github Actions. The code is the same for iOS and macOS, so I guess it works on iOS as long as it compiles but I haven't tested it. This PR adds a new variant to the |
You're right. I removed the new variant.
How can you do that? |
Ahh, I mis-remembered the old behavior and just played with it now. It doesn't behave like I thought, so please ignore this part of my comment. |
9968952
to
211c4d0
Compare
I restored the old behavior, so it still compile_errors. |
@Kijewski As expected, just tested in an iOS sim on |
Thank you for testing it, and reporting the issue! |
published in release 0.1.37 . Thanks all. |
Cf. baoyachi/shadow-rs#107 (comment)