MvvmCross 9.0.1 iOS release build crashes on device
See original GitHub issue🔙 Regression
A release build (IPA file) of an an app crashes as soon as a MvvmCross package reference is added.
Reproduction steps
-
Create a new app with
dotnet new ios
-
Set a valid bundle identifier in
Info.plist
-
Add a reference to
MvvmCross
, version 9.0.1 or 9.0.0 -
Build an IPA file:
dotnet publish testapp.csproj -f:net6.0-ios -c:Release /p:CodesignKey="Apple Development: Markus Palme (XXXXXX)" /p:CodesignProvision="Test app" /p:ArchiveOnBuild=true -r ios-arm64
-
Install the IPA file on an iPhone, start the app
-
The launch screen shows quicky, then the app crashes with this message being visible in the console:
error: Failed to load AOT module ‘System.Private.CoreLib’ while running in aot-only mode: doesn’t match assembly.
This is the full project file:
<PropertyGroup>
<TargetFramework>net6.0-ios</TargetFramework>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
<MtouchLink>None</MtouchLink>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MvvmCross" Version="9.0.1" />
</ItemGroup>
</Project>
Configuration
Version: 9.0.0 or 9.0.01
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
@markuspalme not a lot of experience with net6-ios. Have done a bunch with net6.0-android, which works well.
@Cheesebaron What’s your experience so far with
net6-ios
?