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

Xamari.iOS build broken on 20210510.1 #3374

Closed
1 of 7 tasks
tomasz-soltysik opened this issue May 13, 2021 · 8 comments
Closed
1 of 7 tasks

Xamari.iOS build broken on 20210510.1 #3374

tomasz-soltysik opened this issue May 13, 2021 · 8 comments
Labels
Area: Apple OS: macOS question Further information is requested

Comments

@tomasz-soltysik
Copy link

Description
Newest Mac agent image has incompatible versions of Xamarin.iOS and Xcode.

MTOUCH : error MT0180: This version of Xamarin.iOS requires the iOS 14.5 SDK (shipped with Xcode 12.5). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only in your project's iOS Build Options > Linker Behavior (to try to avoid the new APIs).

20210510.1 release notes contains info that it has Xamari.iOS 14.16, which works only with Xcode 12.5, which is not included in this agent image.

Area for Triage:
Xcode, Xamarin

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Image version
20210510.1

Expected behavior
iOS build succeeded

Actual behavior
iOS build will pass only if linker options is set to Link Framework SDKs Only

@al-cheb al-cheb added OS: macOS question Further information is requested and removed needs triage labels May 13, 2021
@AlenaSviridenko
Copy link
Contributor

AlenaSviridenko commented May 13, 2021

Hi @tomasz-soltysik,
as a workaround you can change default Xamarin.iOS versions by switching a default bundle with the code below:

steps:
  - uses: actions/checkout@v2
  - name: Select default Xamarin bundle to 6_12_7
    run: |
       XAMARIN_SDK=6_12_7
       $VM_ASSETS/select-xamarin-sdk.sh $XAMARIN_SDK

You can read more about bundles and versions assigned to them in the official docs: https://docs.github.com/en/actions/guides/building-and-testing-xamarin-applications

@AlenaSviridenko
Copy link
Contributor

Meanwhile, we will investigate the issue, because our internal tests have passed for Xamarin.iOS 14.16 + Xcode 12.4.
Thank you for your report.

@tomasz-soltysik
Copy link
Author

Just to clarify: I'm using Azure Pipelines (Azure Devops).

@AlenaSviridenko
Copy link
Contributor

Oh, then please, check out this guide https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#how-can-i-manually-select-versions-of-tools-on-the-hosted-macos-agent

@ramtechjoe
Copy link

I believe the issue is because of the Xcode 12.5 update. Things worked fine for me on Azure pipelines prior to that upgrade

@DavidStrickland0
Copy link

My Builds started working again. Not sure if its a fluke or a fix.

@miketimofeev
Copy link
Contributor

@DavidStrickland0 @tomasz-soltysik we have removed the latest Xamarin ios as it's incompatible with Xcode 12.4.
I'm going to close the issue. Please feel free to contact us if you have any concerns.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Apple OS: macOS question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants