runtime: tvOS: Mono runtime for device is missing bitcode

Trying to link with libmonosgen-2.0.dylib from the tvOS runtime pack yields:

ld: ‘/Users/rolf/work/maccore/coreclr/xamarin-macios/builds/downloads/microsoft.netcore.app.runtime.tvos-arm64/6.0.0-preview.1.21102.12/runtimes/tvos-arm64/native/libmonosgen-2.0.dylib’ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file ‘/Users/rolf/work/maccore/coreclr/xamarin-macios/builds/downloads/microsoft.netcore.app.runtime.tvos-arm64/6.0.0-preview.1.21102.12/runtimes/tvos-arm64/native/libmonosgen-2.0.dylib’

This is also evident in the size difference between the runtime pack and the old mono archive:

$ ls -la builds/downloads/microsoft.netcore.app.runtime.*/6.0.0-preview.1.21102.12/runtimes/tvos-arm64/native/libmonosgen-2.0.dylib
-rwxr--r--  1 rolf  staff  4307416 Feb  3 03:54 builds/downloads/microsoft.netcore.app.runtime.tvos-arm64/6.0.0-preview.1.21102.12/runtimes/tvos-arm64/native/libmonosgen-2.0.dylib

$ ls -la builds/downloads/ios-release-Darwin-5e9cb6d1c1de430965312927d5aed7fcb27bfa73/ios-libs/tvos/libmonosgen-2.0.dylib     
-rwxr-xr-x  1 rolf  staff  29800456 Feb 19 11:43 builds/downloads/ios-release-Darwin-5e9cb6d1c1de430965312927d5aed7fcb27bfa73/ios-libs/tvos/libmonosgen-2.0.dylib

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

The current dotnet/installer has the missing commits

https://github.com/dotnet/runtime/compare/5d0817a2136b84580a78fea5bfbe9910098bed2b...3ffaab9b6f90c8f5169cf529035d209b060b1d83

Maestro has not (yet) updated the PR but doing a local build with the following diff worked (or at least it build) https://gist.github.com/spouliot/78aabb8c09a6127da2e5b8ee0a7a0123