-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
tvOS: Mono runtime for device is missing bitcode #48508
Comments
@rolfbjarne is this a tvOS specific requirement? from what I can see we're doing pretty much the same on iOS/tvOS. |
@akoeplinger yes, this is specific to tvOS, we don't need bitcode on any other platform (except for watchOS, but that's not on the roadmap right now). |
This is blocking us from enabling globalization (ICU) on tvOS. see #50912 |
and re-enable some tests for dotnet Part of the fix for #8906 Known Issues * [some Calendar are not the expected ones](dotnet/runtime#50859) * [No support for tvOS (bitcode)](dotnet/runtime#48508)
This should do for the bitcode in the libs+mono (doesn't enable the Unfortunately the ICU build itself is not built with bitcode and that has to be done first:
https://github.com/dotnet/icu/blob/maint/maint-67/eng/icu.tvos.mk looks like a good start. |
Now that ICU build is fixed and consumed I submitted #51220 to generate bitcode for the Mono runtime and native libraries. Once/if that gets accepted and the packages are bumped on Xamarin side this needs to be removed: https://github.com/xamarin/xamarin-macios/blob/312ab983a134cca50091873b5f936b099757d209/runtime/Makefile#L670-L672 |
@filipnavara do you think there's anything left for us to do here, or just follow-up on the XI side? |
@akoeplinger I am honestly not sure. The MonoVM build may not work exactly like the |
@filipnavara I looked at the mono/mono code and it seems like the |
Opened #51241, I think we can close this here and open new issues if needed. |
The current package points to 3ffaab9 which does not include "Add additional compiler flags for tvOS (#51241)"
^ current lib is without bitcode (confirmed by size and tried to build it locally) I'll check back next week to see if we can re-enable this. Thanks! |
I will double check the output but I think it should be linking against |
Version 6.0.0-preview.4.21215.1 does contain it for both .a and .dylib. The PR dotnet/macios#11175 should bump way beyond that. |
We need both The latter is important to build a framework (still todo for dotnet) so we can share the runtime between the app and the extensions (which also exists, even if less common, in tvOS). |
afaict the dotnet/runtime specific changes (quick script generated) for PR #11175 are and this does not have the tvOS changes (so I'm not too worried about my current results) |
The current dotnet/installer has the missing commits Maestro has not (yet) updated the PR but doing a local build with the following diff worked (or at least it build) |
Trying to link with libmonosgen-2.0.dylib from the tvOS runtime pack yields:
This is also evident in the size difference between the runtime pack and the old mono archive:
The text was updated successfully, but these errors were encountered: