dotnet / dotnet/macios

Not able to build iOS binding library with XcodeProject items on Visual Studio (Windows)

Open
#23,408 4 comments 0 reactions 0 assignees View on GitHub
bug msbuild windows-only
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

### Description

When creating an iOS binding library (using SwiftUI) there is no way to build it from a Windows device that is connected to a MAC. Always getting error: _build a binding project from Windows unless a connection to a Mac is available_ (while connected to MAC)

On a MAC (with VSCode) the binding library works fine, using


net9.0-ios;net9.0-maccatalyst
enable
true
true
true






WKP

```
3. Run/Test on MAC > this works
4. Run/Test on Windows (where VS is attached to MAC) > this gives error message

### Link to public reproduction project repository

_No response_

### Version with bug

9.0.90 SR9
Dotnet workload 9.0.204 and 9.0.303

### 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 16.4 - iOS 18.5

### Did you find any workaround?

None, the only solution is to build it on a MAC and copy the output to Windows.

### Relevant log output

```shell
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.4\18.4.9288\tools\msbuild\Xamarin.Shared.targets(1900,3): warning : It's currently not supported to build a binding project from Windows unless a connection to a Mac is available.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.