maui
maui copied to clipboard
Unable to deploy maui app on ios
Description
Ive created a simple project which references an another project. The referenced project has no maui-related code so it has "net8" as targetframework. The deployment fails on. I found in the log a error that the "project.assets.json" does not have a target for "net8.0". if i add "net8.0-ios" as targetframework to the referenced project it seems to work. For android it is fine.
Demo: https://github.com/BjoernMSG/MauiTest
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
Xcode 15.1
Did you find any workaround?
No response
Relevant log output
No response
Hi @BjoernMSG. 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.
Could you please create an example for how you set up your projects?
Ive created a small demo project:
https://github.com/BjoernMSG/MauiTest
It builds and deploys fine for me without issue from CLI. Are you doing this from Visual Studio on Windows? VS Mac? Rider?
Hi @BjoernMSG. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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.
Im using Rider on a MacOs.
Thats the error i got from the log:
And that is project.json from the library:
We have the same issue for another developer, too
Any news?
This issue seems to be only reproducible using Rider. Created this issue:
https://youtrack.jetbrains.com/issue/RIDER-104416/iOS-deployment-fails-when-referenced-project-does-not-target-net8.0-iOS-project.assets.json-doesnt-have-a-target-for-net8.0.
I can confirm that this error is not reproducible with version of Jetbrains Rider 2023.3 EAP 9 D Build #RD-233.13945.4, built on January 14, 2024.
I guess this issue can be closed.
Verified on 8.0.14 & 8.0.0-rc.2.9530 with the latest 17.6.10(build428), cannot repro on iOS platform.