The problem solved after uninstalling vs code and installing again. it update its pacakes.
We can close the ticket.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
Maui app in mac using VS Code stop working.
I got this error.
Using .Net 8.
What's the debug target? Do you run the app on an iOS simulator? If so, what's the Xcode version?
What's the debug target?
I selecte the project to run in MAC and from menu run the app with/without debugging
and I got this image error above.
Do you run the app on an iOS simulator? If so, what's the Xcode version?
Can you explain how to check both questions?
I'm using VS CODE.
The debug target is from the language status item at the bottom right of VS Code (you can find it clicking the '{}' icon)
I understand you are using VS Code on Mac. If you target on iOS and test on an iOS simulator, we can investigate if the issue is related to Xcode version.
When i click on {} i got:
In addition i haide the stuatus bar and i don't know how to bring it back ?
the error is pretty clear. when compiling to release (AOT) one of your dependent library is not supported. You might try:
<UseInterpreter>true</UseInterpreter>
in the release build.
1.Where i put this tag, it worked before?2.i hide the status bar =>{} where i can bring it back?
........
see docs:
https://learn.microsoft.com/en-us/dotnet/maui/macios/interpreter?view=net-maui-9.0
the error is unreleased to vscode status bar.
on a Mac to toggle the status bar its:
View->Appearance->Status Bar
The status bar work as expected.
But i added this to csproj file to enable the interpreter.
try these two options and got same error.
Please help.
The Mono interpreter can be enabled in iOS release builds by setting the $(UseInterpreter)
MSBuild property to true
in your .NET MAUI app's project file:
XMLCopy
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
The interpreter can also be enabled for Mac Catalyst release builds on ARM64:
XMLCopy
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'maccatalyst-arm64' and '$(Configuration)' == 'Release'">
Your quick answer will be appreciated.
you should check with the library owner. see issue:
https://github.com/mono/SkiaSharp/issues/1885
as the bug has been open for 3 years, you will probably need to fork and fix yourself.
This library is pary of maui project?
Can you please answer ?
But i added this to csproj file to enable the interpreter.try these two options and got same error.
Could you provide the detailed error message in the log dashboard so that we can investigate further?
ן added screenshoot from terminal in the above ticket you can see it
OK. It would be easier to diagnose the problem if you shared the text.
As Bruce, the log shows that the issue is from SkiaSharp. When you run an empty template MAUI app, does the issue still exist?
I will check with empty maui app.what is skiasharp come from?
You could see if you added the SkiaSharp.Views.Maui.Controls
package. By default, SkiaSharp is a part of MAUI. Could you find if there are any other error messages besides the "maui- build"?
not add this module.
On an empty project, you still have this problem, right?
I attached the problems tab + and pacakges
How i create new project with vs code?
Please follow the guide on the official doc- Build your first .NET MAUI app - .NET MAUI | Microsoft Learn. (Select the Visual Studio Code tab)
The doc speak about VS i do not see VS code.
here
thanks.
i do not have this screen:
Your quick answer will be appreciated.
I succeded to creare new poject. but not running.
more info.
the default project template includes windows, iOS and android targets. this means you either install all the build tools for each platform or edit the project file to limit the targets to only what you want.
also as Maui 8 support ends in May, you should probably install net 9 and Maui 9 to start you project. The newer tools may also have fewer issues.
So this the problem also with my project They have same error
if you want an android build, you need to install the android sdk from google. I don't do android, so can not verify steps.
How to update my csproject?im in mac
Hi,
I limited the target only for new Maui project to macalist as below:
and got same error:
what do i miss ? my project , not the new maui project work before ?
my launch .json of the new maui project
my task.json of the new maui project
This after clear nd rebuild my project:
also the task json is empty in my project like the empty project.
and launch.json is like the empty project.
are they define correctly? if not how?
IS IT CONNECTED TO C# DEV KIT?
The error says that the referenced package OpenGLES does not support the MacCatalyst framework.
I have no such reference.
Could you please help?
@Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.)
Your quick answer will be appreciated.
For your scenario, it is recommended to open a support ticket for this. Please contact our paid phone support at MS Support. You will get 1:1 support on that.
What happened the project work ok,and suddenly stop working. What opengls pacakge come from, doesnt appear in my csproje file?
Your quick answer will be appreciated
Go to the 'PROBLEM'tab, I saw there are 36 issues. Could you provide the log in txt?
Your quick answer will be appreciated
This shows that there is an Android SDK error, please follow the doc to install- Install .NET for Android dependencies - .NET for Android | Microsoft Learn
I know you have edited the csproj file to target maccatalyst platform only, please try to set ".net9-maccatalyst" to see if the issue only occurs on .net8.
Form the image, I see you add two project references in your project, do you also add these references when creating a new project for testing?
1.regarding the Android sdk, , I'm in MAC what is the c is it correct ?
Can you please give the path in MAC for p:AndroidSdkDirectory +
p:JavaSdkDirectory.
from where i run this cmd?
dotnet build -t:InstallAndroidDependencies -f net8.0-android -p:AndroidSdkDirectory=c:\work\android-sdk -p:JavaSdkDirectory=c:\work\jdk -p:AcceptAndroidSdkLicenses=True
2.I tried to set ".net9-maccatalyst",is not working, i have no net 9 in my project ?
3.I do not added these references when creating a new project for testing.
Your quick answer will be appreciated
regarding 1:Is this the full command in MAC? sasasoftware is my user.
dotnet build -t:InstallAndroidDependencies -f net8.0-android \
-p:AndroidSdkDirectory=/Users/sasasoftware/Library/Android/sdk \
-p:JavaSdkDirectory=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home \
-p:AcceptAndroidSdkLicenses=True
Your quick answer will be appreciated.
No, you could save the SDK in /Users/XXX/Library/Developer/Xamarin/android-sdk-macosx/...There is another way to configure Android, click "View" on the top bar, select "Command Palette"->.NET MAUI Configure Android.
Since it cost a long time, and we still cannot find the root issue, it is recommended to open a support ticket for this. Please contact our paid phone support at MS Support. You will get 1:1 support on that.
I do not have this command paallete:
.NET MAUI Configure Android.
Your quick answer will be appreciated.
In my project I removed the target .net8.0-android && net 8.0-ios and the Android SDK error disapper. but still got this error:
ILLINK : warning MT0182: Not linking with the framework OpenGLES (referenced by a module reference in SkiaSharp.Views.iOS.dll) because it's not available on the current platform (MacCatalyst). [/Users/sasasoftware/Documents/GssdDesktopClient/GssdDesktopClient.Maui/GssdDesktopClient.Maui.csproj::TargetFramework=net8.0-maccatalyst]
Your quick answer will be appreciated.
Your quick answer will be appreciated.
I have reproduced the warning
Sample maui project just added the SkiaSharp.Views.Maui.Controls and Compatibilityreference and called .UseSkiaSharp inside the MauiProgram.cs file.
Your quick answer will be appreciated.
Your quick answer will be appreciated.
Your quick answer will be appreciated.
I have reproduced the warning Sample maui project just added the SkiaSharp.Views.Maui.Controls and Compatibilityreference and called .UseSkiaSharp inside the MauiProgram.cs file.
It means the root issue is the SkiaSharp issue as Bruce said. Are there any updates about the packages? Or could you update MAUI version? Or update C# Dev Kit?
Or could you update MAUI version > do you mean move from .net 8 to .net 9 ?
Or update C# Dev Kit? i tried to update it it doesnt help.
Your quick answer will be appreciated.
In addition does your reproduced sample is disaaper on NET 9 ?
Telerik tested this issue on net 9, same behavior, there is a warning with Skia 2.88.7 version. They updated the Skia to the latest version 3.116.1 and there isn't a warning.
Does on MAUI net 9 on mac this problem solved? which version they Skia version they used?
Your quick answer will be appreciated.
On my side, there is no such error. I'm using Xcode16.2, both .net8 and .net9.
From the other thread, I know you will update Xcode. After installing the latest Xcode, you may have to install the latest MAUI SDK and workloads. If you have any other issues, please feel free to let me know.
Before upgrading my macos i install maui sdk and workload succesfully.Do i need to make it again after installtion?
Your quick answer will be appreciated.
Waiting to your response.
Your quick answer will be appreciated
Do i need to make it again after installtion?
You don't need to install again.
The problem solved after uninstalling vs code and installing again. it update its pacakes.
We can close the ticket.
Glad you solved the problem, I converted the comment to answer, thanks for your sharing.