-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add ios simulator #353
Add ios simulator #353
Conversation
Travis says that "the |
Ah, yes. Should be fixed now. |
Seem like it still doesn't work: If the CI can't be made to work, we can leave it out for now, merge the |
* Added iphonesimulator case. * Used xcrun --sdk $PLATFORM --show-sdk-path * Added cargo-dinghy to travis for ios simulator unit tests
gdnative-sys/build.rs
Outdated
// Workaround: x86_64 architecture is unsupported by the iPhone SDK, but cargo-lipo will | ||
// try to build it anyway. This leads to a clang error, so we'll skip the SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's working now. Great! Now we can remove this Workaround
comment since it no longer applies. After that it should be good to merge!
Thanks a lot!
Closes #352.
xcrun --sdk $PLATFORM --show-sdk-path
to get the sysrootI've tested verified that this builds with macos, aarch64-apple-ios (the iPhone) and for x86_64-apple-ios (the ios simulator).
I also added
cargo-dinghy
to CI so that you can run some of the unit tests in the simulator. The tests in gdnative-sys are really just the bindgen size tests.I tried running
cargo dinghy --platform auto-ios-x86_64 test
in the root of the project and there's some weird bug with the examples in dinghy. It could be due to lack of a local lib (like godot as a static lib?) or maybe a bug with dinghy itself. I'm not sure.