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

[msbuild] Use the macOS SDK to build Mac Catalyst apps instead of the iOS SDK #10644

Merged
merged 4 commits into from
Feb 17, 2021

Conversation

rolfbjarne
Copy link
Member

From a native compilation perspective, compilating a Mac Catalyst is the macOS
SDK + a dash of iOS, so use the native macOS SDK to compile, and then do the
corresponding adjustments elsewhere.

At the same time document which version we want for the sdk version and the
deployment target in mtouch, and adjust the code accordingly (sdk version:
macOS version; deployment target: iOS version).

This also requires bumping Xamarin.MacDev.

New commits in xamarin/Xamarin.MacDev:

Diff: https://github.com/xamarin/Xamarin.MacDev/compare/02d6d05be3506c89a3b4fa8a8ceb7f33712a8f46..1e738e9f7f80e76e1f48690d1f95a7457ddead74

New commits in xamarin/Xamarin.MacDev:

* xamarin/Xamarin.MacDev@1e738e9 [Xamarin.MacDev] Extract the code to convert between Mac Catalyst versions to a separate file. (xamarin#89)
* xamarin/Xamarin.MacDev@a3bb12c [Xamarin.MacDev] Add methods to map between iOS and macOS versions for Mac Catalyst. (xamarin#88)

Diff: https://github.com/xamarin/Xamarin.MacDev/compare/02d6d05be3506c89a3b4fa8a8ceb7f33712a8f46..1e738e9f7f80e76e1f48690d1f95a7457ddead74
… iOS SDK

From a native compilation perspective, compilating a Mac Catalyst is the macOS SDK
+ a dash of iOS, so use the native macOS SDK to compile, and then do the corresponding
adjustments elsewhere.

At the same time document which version we want for the sdk version and the deployment
target in mtouch, and adjust the code accordingly (sdk version: macOS version; deployment
target: iOS version).
@rolfbjarne rolfbjarne added the not-notes-worthy Ignore for release notes label Feb 15, 2021
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ Tests failed on Build ❌

Tests failed on Build.

Test results

7 tests failed, 174 tests passed.

Failed tests

  • xammac tests/Mac Modern/Debug: Failed (Test run crashed)
  • xammac tests/Mac Modern/Debug (all optimizations): Failed (Test run crashed)
  • xammac tests/Mac Modern/Release: Failed (Test run crashed)
  • xammac tests/Mac Modern/Release (all optimizations): Failed (Test run crashed)
  • [xUnit] Mono Mac OS X BCL tests group 4/Mac Modern/Debug: Failed (No test log file was produced)
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 3.2): Failed
  • MSBuild tests/Tasks: Failed (Execution failed with exit code 13)

Pipeline on Agent XAMBOT-1097'

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ Tests failed on Build ❌

Tests failed on Build.

Test results

3 tests failed, 178 tests passed.

Failed tests

  • link sdk/iOS Unified 64-bits - simulator/Release: Failed
  • link all/tvOS - simulator/Release: Failed
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 3.2): Failed

Pipeline on Agent XAMBOT-1095

@rolfbjarne
Copy link
Member Author

Test failures are unrelated:

@rolfbjarne rolfbjarne merged commit 7c6c8e0 into xamarin:main Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-notes-worthy Ignore for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants