- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6
Add macOS support #20
Conversation
| Let me open a different PR to see if this is happening with   | 
| The test failures seemed unrelated but would be nice to fix. Default item inclusion will be unblocked by dotnet/macios#11991. | 
| /azp run | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
| @filipnavara sorry for the delay, it's been busy for me lately. If this is green, do you think it's working enough to merge? | 
We probably shouldn't add this to `samples.sln`, because it would fail CI phases on Windows.
| 
 It should be on par with the iOS code. I'll submit another PR to fix the automatic file inclusions once the next workload previews are shipped. | 
| An error came up when I setup the HelloMac project to build:  | 
| Thanks, I will check. | 
| @jonathanpeppers I cannot see the AzDO pages and the build log. Can you post the failing part please? Local build seems to work just fine for me with the same command as in azure-pipelines.yml. | 
| The latest error is new: .binlog: HelloMac.zip I'm not immediately seeing what is wrong... | 
| It seems to be a mismatch between the Debug/Release of the projects being built. I cannot quite reproduce the same error but I have very similar one reproduced locally. | 
| I'm kinda surprised that it doesn't error out on the other samples. Maybe it behaves differently when compiled through .sln. | 
| I added a step creating the directory. These sources are static, doesn't make sense why  Xamarin.Legacy.Sdk/samples/nuget.config Lines 5 to 6 in f78e04e 
 | 
| Ok, now we have a real error: Let me check on what Xcode I can get -- or could we change the sample project to a class library? We wouldn't need the linker in that case? | 
| 
 I tried to make it as close as possible to the actual usage which is why I chose to use an app as a sample. It also allows to verify easily if all the assets were embedded correctly because the app would not build or run. That said, I am fine with temporarily changing it to a class library if it can unblock the PR. | 
…into macOS Conflicts: azure-pipelines.yml src/Xamarin.Legacy.Sdk/Sdk/Sdk.props
| I was checking if we could do this now, you can get Big Sur (with Xcode 12.5) on Github Actions now: Still not available on Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted Let's see if this is any closer now. | 
| Ugh, seems like we need Xcode 13 now...  | 
| The Xcode 13 beta should be in the image (https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md) and there's a GH Action to install/switch it. I am out on vacation now but I can take a look when I return. | 
| This seems to be using Xcode 13 now, but we get:  | 
| Xcode 13 beta 5 (as available on the GH Actions macOS image) removed  | 
| I'll probably come back to this when .NET 6 RC 1 ships, thanks. @filipnavara do you need this in quicker than that? We could also just not build the Mac sample on CI yet and ship it? | 
| No rush here. Let's revisit it once RC1 ships. | 
| I wanted to re-run the GitHub Actions / Azure Pipelines but apparently I don't have enough rights to do so. | 
| I think the general CI also broke when RC1 shipped. Let me update .NET 6 in this repo. | 
| Thanks for the merge. Looks like the macOS image was updated with Xcode 13 RC already (which dropped macOS 12 SDK at last minute) :-( | 
| Looks like there's some attempt to bring back Xcode 13 beta 5 back into the images. Not sure if it's deployed already. | 
| Looks like a new macOS 11 image went live around ~8 hours ago. Hopefully the Xcode step should succeed now. | 
| 🎉 | 
| @filipnavara we shipped this: https://www.nuget.org/packages/Xamarin.Legacy.Sdk/0.1.1-alpha5 Sorry, I forgot to actually publish the release on this one. | 
| Thanks! | 
Gets the basics working. It's missing the default items and I haven't been able to fix that but that's already missing on iOS.