banditoth / maui-archiver-vscode

Visual Studio Code extension for archiving/publishing .NET MAUI applications
MIT License
35 stars 3 forks source link

Publish failed on Dotnet ios #12

Closed dingxiaolong closed 2 months ago

dingxiaolong commented 2 months ago

Dear : I am using Apple M1 to develop dotnet iOS project . I face an error when I try to publish my project . "/usr/local/share/dotnet/sdk/7.0.311/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5): error NETSDK1139: The target platform identifier ios was not recognized".

My target platform is : " net6.0-ios16.1", I try to change it to net6.0-ios, net7.0-ios ,but aways face this error . This can archived well on my Vistual Studio for mac .

Could you help check it please ? Many thanks.

banditoth commented 2 months ago

Hey @dingxiaolong

In the settings change the target framework from .NET 8 to your project's target framework. If this does not solve your problem , it seems like your dotnet environment is misconfigured. Please follow the discussion at https://github.com/dotnet/maui/issues/9134.

If the problem still persists, open this issue back