Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The target platform identifier ios was not recognized #47

Closed
lokinfey opened this issue Nov 23, 2020 · 4 comments
Closed

The target platform identifier ios was not recognized #47

lokinfey opened this issue Nov 23, 2020 · 4 comments

Comments

@lokinfey
Copy link

I try to build net6-samples ,but it shows:

/usr/local/share/dotnet/sdk/6.0.100-alpha.1.20562.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier ios was not recognized. [/Users/lokinfey/Downloads/net6-samples-main/HelloiOS/HelloiOS.csproj]

@lokinfey
Copy link
Author

I restart my mac, eveything is okay

@jonathanpeppers
Copy link
Member

Sometimes I have to kill all dotnet processes, and that’s probably why it fixed it. Let us know if you find other bugs, thanks.

@chucker
Copy link
Contributor

chucker commented Feb 23, 2021

I just ran into this very error, in preview 1:

> dotnet build HelloiOS
Microsoft (R) Build Engine version 16.9.0-preview-21103-02+198f3f262 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
/usr/local/share/dotnet/sdk/6.0.100-preview.1.21103.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier ios was not recognized. [/Users/chucker/net6-mobile-samples/HelloiOS/HelloiOS.csproj]

Build FAILED.

/usr/local/share/dotnet/sdk/6.0.100-preview.1.21103.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier ios was not recognized. [/Users/chucker/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
    0 Warning(s)
    1 Error(s)

I tried a macOS restart (though no dotnet processes were running), to no avail.

Should I file a separate bug?

@rolfbjarne
Copy link
Member

@chucker you must create the EnableWorkloadResolver.sentinel file (as described in the README), or alternatively export MSBuildEnableWorkloadResolver=true for the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants