Open Closed

Build and Run error on MAUI project #3716


User avatar
0
darutter created

Using abp version 6.0.0-rc.4 I created a new project with a MAUI mobile app template. The project appears to create successfully, but when I try to run the MAUI project in debug mode I get the errors that are attached

Please let me know how to resolve these errors.


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you remove PublishTrimmed or set it to false.

  • User Avatar
    0
    darutter created

    The above errors occur when I don't have the PublishTrimmed property in the .csproj file. If I put the property in the .csproj file and set the value to false I get this error:

    /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.447/targets/Xamarin.Shared.Sdk.targets(3,3): Error: iOS projects must build with PublishTrimmed=true. Current value: false. (BCFOAssistant.Maui)

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Sorry, I could not reproduce the problem, it might be related to your environment.

    You can use the maui check to check your environment. see: https://github.com/Redth/dotnet-maui-check

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11