maui icon indicating copy to clipboard operation
maui copied to clipboard

Unable to deploy maui app on ios

Open BjoernMSG opened this issue 1 year ago • 9 comments

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

BjoernMSG avatar Jan 03 '24 11:01 BjoernMSG

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.

ghost avatar Jan 03 '24 15:01 ghost

Could you please create an example for how you set up your projects?

drasticactions avatar Jan 03 '24 15:01 drasticactions

Ive created a small demo project:

https://github.com/BjoernMSG/MauiTest

BjoernMSG avatar Jan 03 '24 17:01 BjoernMSG

It builds and deploys fine for me without issue from CLI. Are you doing this from Visual Studio on Windows? VS Mac? Rider?

drasticactions avatar Jan 05 '24 04:01 drasticactions

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.

ghost avatar Jan 05 '24 04:01 ghost

Im using Rider on a MacOs. Thats the error i got from the log: image

And that is project.json from the library:

image

BjoernMSG avatar Jan 05 '24 04:01 BjoernMSG

We have the same issue for another developer, too

BjoernMSG avatar Jan 08 '24 13:01 BjoernMSG

Any news?

BjoernMSG avatar Jan 09 '24 11:01 BjoernMSG

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.

ChristopherStephan avatar Jan 12 '24 13:01 ChristopherStephan

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.

ChristopherStephan avatar Jan 15 '24 10:01 ChristopherStephan

Verified on 8.0.14 & 8.0.0-rc.2.9530 with the latest 17.6.10(build428), cannot repro on iOS platform.

kevinxufei avatar Apr 02 '24 09:04 kevinxufei