Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAUI with .NET 8] Can't run on Android/iOS #15849

Closed
SunshineSpring666 opened this issue Jun 26, 2023 · 4 comments
Closed

[MAUI with .NET 8] Can't run on Android/iOS #15849

SunshineSpring666 opened this issue Jun 26, 2023 · 4 comments
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/android 🤖 platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working

Comments

@SunshineSpring666
Copy link

Description

In latest VS (17.7.0 Preview 2) and .NET 8 (Preview 5), a MAUI project

(1) can’t Compile on Android/iOS. Error:
Error APT2260 resource mipmap/appicon (aka com.xy.fa:mipmap/appicon) not found.
Error APT2260 resource mipmap/appicon_round (aka com.xy.fa:mipmap/appicon_round) not found.
Error APT2067 failed processing manifest.

(2) the .csproj file can’t be opened in VS GUI to modify the content. Error:
System.ArgumentException: Expected 6 values for property IOSRule::MtouchSdkVersion, but got 2.

These problems exist since .NET 8. Please investigate the issues. Thanks.

Steps to Reproduce

  1. Create a MAUI app with .NET 8 in Visual Studio.
  2. Try to open the .csproj file, error shows.
  3. Try to compile app on Android/iOS, error shows.

Link to public reproduction project repository

https://github.com/SunshineSpring666/MaApp.git

Version with bug

8.0.0-preview.1.7762

Last version that worked well

7.0.86

Affected platforms

iOS, Android

Affected platform versions

.NET 8, Android 12+

Did you find any workaround?

No workaround.
Currently, there are bugs preventing MAUI app to run with .NET 8 on Android/iOS.

Relevant log output

No response

@SunshineSpring666 SunshineSpring666 added the t/bug Something isn't working label Jun 26, 2023
@jsuarezruiz jsuarezruiz added area-setup Installation, setup, requirements, maui-check, workloads, platform support platform/iOS 🍎 labels Jun 26, 2023
@PureWeen PureWeen added the s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue label Jun 27, 2023
@ghost
Copy link

ghost commented Jun 27, 2023

Thanks for the issue report @SunshineSpring666! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

@XamlTest
Copy link

Verified this on Visual Studio Enterprise 17.7.0 Preview 5.0. This issue does not repro on Android 13.0-API33 and iOS 16.4(8.0.100-preview.6.23330.14) with below Project:
MaApp.zip

Compile successfully on iOS and Android:
image
image

@XamlTest XamlTest added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Jul 28, 2023
@ghost
Copy link

ghost commented Jul 28, 2023

Hi @SunshineSpring666. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

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.

@samhouts samhouts added platform/android 🤖 area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging labels Aug 3, 2023
@ghost ghost closed this as completed Aug 13, 2023
@ewerspej
Copy link

I experience this issue with the latest version (8.0.100-preview.7.23376.3) while trying to check if issue #16816 has been fixed already in the latest preview.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 17, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/android 🤖 platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants