Closed AndrewPlakhotnyi closed 2 years ago
If you try creating a new dotnet 6 Mac Catalyist app, without MAUI (dotnet new maccatalyst
) and try doing that, does it still crash?
I have a feeling this is an issue specific to dotnet 6 Mac Catalyst itself, not the MAUI UI Framework things in this repo.
Hi @AndrewPlakhotnyi. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This is still an issue. I created a maui app through Jetbrains Rider. It builds perfectly fine to Android and iOS. However, if I reference a Razor Class Library like so in the maui project: `
`
then it fails across the board with the following error:
Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64'. Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'. Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-arm'. Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-arm64'. Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-x86'. Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427, 5): [NETSDK1082] There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'android-x64'.
Nevermind, I found the issue. The issue lies with an internal package that I was referencing - which does not seem to be compatible with MAUI. After removing it, it runs perfectly fine
If you try creating a new dotnet 6 Mac Catalyist app, without MAUI (
dotnet new maccatalyst
) and try doing that, does it still crash?I have a feeling this is an issue specific to dotnet 6 Mac Catalyst itself, not the MAUI UI Framework things in this repo.
@AndrewPlakhotnyi if you can respond to the question here we can reopen
Description
MAUI app on Mac Catalyst with NLua NuGet crashes on startup. Probably the bug is not specific to the NLua NuGet.
The internal library
liblua54
is linked to the path@rpath/liblua54.framework/Versions/A/liblua54
but the file is actually located at@rpath/liblua54.framework/liblua54
. As a result, the app crashes with the error:Library not loaded: @rpath/liblua54.framework/Versions/A/liblua54
liblua54 is a result of building KeraLua
Steps to Reproduce
dotnet build -f net6.0-maccatalyst -t:Run
Library not loaded: @rpath/liblua54.framework/Versions/A/liblua54
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
macOS Monterey 12.3.1
Did you find any workaround?
patching the executable file fixes the problem
install_name_tool -change @rpath/liblua54.framework/Versions/A/liblua54 @rpath/liblua54.framework/liblua54 MyMauiApp
However, this breaks the signature of the executable file.
Relevant log output