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

.NET: 'dotnet new tvos' creates a project that doesn't build #11918

Closed
rolfbjarne opened this issue Jun 14, 2021 · 3 comments
Closed

.NET: 'dotnet new tvos' creates a project that doesn't build #11918

rolfbjarne opened this issue Jun 14, 2021 · 3 comments
Labels
bug If an issue is a bug or a pull request a bug fix dotnet An issue or pull request related to .NET (6) dotnet-pri0 .NET 6: required for stable release
Milestone

Comments

@rolfbjarne
Copy link
Member

Steps to Reproduce

  1. dotnet new tvos
  2. Add a RuntimeIdentifier to the csproj (<RuntimeIdentifier>tvos-x64</RuntimeIdentifier>)
  3. dotnet build

Expected Behavior

Build succeeds

Actual Behavior

Tool xcrun execution started with arguments: clang -g -mtvos-simulator-version-min=11.2 -arch x86_64 -isysroot /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator15.0.sdk -I/runtimes/tvos-x64/native -DDEBUG -o /Users/rolf/work/maccore/main/xamarin-macios/tests/dotnet/tvos/obj/Debug/net6.0-tvos/tvos-x64/nativelibraries/main.x86_64.o -c /Users/rolf/work/maccore/main/xamarin-macios/tests/dotnet/tvos/obj/Debug/net6.0-tvos/tvos-x64/linker-cache/main.x86_64.mm
         (TaskId:157)
Tool xcrun execution finished (exit code = 1).
         (TaskId:157)
/Users/rolf/work/maccore/main/xamarin-macios/tests/dotnet/tvos/obj/Debug/net6.0-tvos/tvos-x64/linker-cache/main.x86_64.mm:15:10: fatal error: 'xamarin/xamarin.h' file not found
#include "xamarin/xamarin.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
 (TaskId:157)

msbuild.binlog.zip

xamarin-macios: f9d0159

@rolfbjarne rolfbjarne added bug If an issue is a bug or a pull request a bug fix dotnet An issue or pull request related to .NET (6) dotnet-pri0 .NET 6: required for stable release labels Jun 14, 2021
@rolfbjarne rolfbjarne added this to the .NET 6 milestone Jun 14, 2021
@rolfbjarne
Copy link
Member Author

The reason is that this clang argument is wrong:

-I/runtimes/tvos-x64/native

part of the path is missing.

@akoeplinger
Copy link
Member

tvos-x64 is not a valid RID, it should be tvossimulator-x64.

@rolfbjarne
Copy link
Member Author

tvos-x64 is not a valid RID, it should be tvossimulator-x64.

Yeah, that works 🤦

We need RID validation sooner rather than later (which is a part of #10861)

@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug If an issue is a bug or a pull request a bug fix dotnet An issue or pull request related to .NET (6) dotnet-pri0 .NET 6: required for stable release
Projects
None yet
Development

No branches or pull requests

2 participants