Closed mcocaroUX closed 10 months ago
This is related to Uno.UI.Toolkit within Uno itself, not the Uno.Tookit.UI library.
Transferring issue to Uno repo
Thanks for the report! This is likely caused by Mapsui.Uno.WinUI
, which may not be compatible with Uno 5.0 or later. We're tracking this in https://github.com/Mapsui/Mapsui/issues/2238, and while the main repo has been updated to uno 5, there's no available package yet.
@jeromelaban @kazo0 Do you guys have an idea when this is going to be fixed? We are currently working on a project using Mapsui and adding the Mac platform is on the roadmap for the next weeks
@mcocaroUX we're not managing MapsUI, so we do not know when packages will be released.
We expect to release a Mapsui 4.1.2-preview.2 with this fix next Friday or next week.
Thanks for the update @pauldendulk!
Hello @kazo0 @jeromelaban, I just updated my packages and added the mac project. But still getting the same error I reported previously
@mcocaroUX thanks. Can you provide a binlog?
@jeromelaban Not sure how to do it on VS for mac. Would that be useful event when the app builds correctly? The exception is being on the Init
Here is what the output throws if it is of any help: mac exception output.txt
Thanks. It really seem that you are referencing an incorrect binary, Uno.UI.Maps
is not supposed to be used at all. You can create a binlog using the terminal (dotnet build
).
I followed all the steps described here on the doc: https://platform.uno/docs/articles/guides/how-to-add-platforms-existing-project.html
After updating the packages and some small tweaks I made the app build on mac but what I get is just a blank screen. The app initialization and navigation to the first screen seems to be executed as expected.
Here is a zip with the issue isolated: TestAddProject.zip
@nickrandolph I can repro the issue, would you know what happens here?
Logs show this:
[0:] Uno.Extensions.Storage.FileStorage: Warning: ReadPackageFileAsync - File 'appsettings.keyvaluestorageconfiguration.json' does not exist in package
[0:] Uno.Extensions.Storage.FileStorage: Warning: ReadPackageFileAsync - File 'appsettings.appconfig.json' does not exist in package
[0:] Uno.Extensions.Storage.FileStorage: Warning: ReadPackageFileAsync - File 'appsettings.localizationconfiguration.json' does not exist in package
[0:] Uno.Extensions.Storage.FileStorage: Warning: ReadPackageFileAsync - File 'appsettings.localizationsettings.json' does not exist in package
[0:] Uno.Extensions.Navigation.Navigators.ContentControlNavigator: Warning: Show - Missing view for navigation path ''
[0:] Microsoft.UI.Xaml.Controls.TextBox: Warning: IsTextPredictionEnabled isn't supported on iOS. Use IsSpellCheckeEnabled instead.
The app works on the WinAppSDK head.
I think the missing step is to add the maccatalyst tfm (eg net7.0-maccatalyst) to the class library project
@jeromelaban Out of curiosity, I am getting all of the uno.extensions.storage.filestorage warnings listed above on app startup and am only using a multi-platform solution that I created using the app config tool for v5.3.18. It does not seem to affect anything except that I disdain seeing errors in any startup up log. Is there any additional configuration that I need to do? I cannot find anything in the online documentation. Thanks!
@mobynet1 we've been tracking this in https://github.com/unoplatform/uno.extensions/issues/2423, it will be published in the next release.
Current behavior
When trying to run the App on Mac it shows this error:
Expected behavior
App should run after adding the project and added missing packages
How to reproduce it (as minimally and precisely as possible)
TestMac.zip
Packages Version(s):
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?
I have a Uno app were the only platform is windows, I'm trying to add a mac project but when I run it app crashes