Skip to content

tvOS: Mono runtime for device is missing bitcode #48508

@rolfbjarne

Description

@rolfbjarne

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions