Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

[SoupChef] Fix build with Xcode 12.2 #409

Merged
merged 1 commit into from
Oct 30, 2020
Merged

Conversation

spouliot
Copy link
Contributor

Xcode 12.2

  • adds arm64 to the simulator architectures
  • removes i386 from the simulator architectures

lipo cannot create a classic fat archive with arm64 simulator and
arm64 device slices - since they are the same architecture.

This requires .xcframework support which is not yet supported by XI
and XM.

However we can tweak the build to do:

  • x86_64 only for simulator, which is the only support arch for XI today
  • arm64 for devices

and that makes lipo happy and we can continue to have this sample under
test automation.

Note: the original .a names were incorrect as they did not match the
architectures that were present in the files. I changed them to mention
the platform.

Xcode 12.2
- adds `arm64` to the simulator architectures
- removes `i386` from the simulator architectures

`lipo` cannot create a _classic_ fat archive with `arm64` simulator and
`arm64` device slices - since they are the same architecture.

This requires `.xcframework` support which is not yet supported by XI
and XM.

However we can tweak the build to do:
- x86_64 only for simulator, which is the only support arch for XI today
- arm64 for devices

and that makes `lipo` happy and we can continue to have this sample under
test automation.

Note: the original `.a` names were incorrect as they did not match the
architectures that were present in the files. I changed them to mention
the platform.
@spouliot spouliot merged commit 0a6947d into xamarin:main Oct 30, 2020
@spouliot spouliot deleted the soupchef-arch branch October 30, 2020 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants