This script was hardcoded to two ABIs, arm64 iphoneOS and x86_64
simulator. We need to support both arm64 and x86 simulators.
This patch reworks the scripts logic, to instead iterate over a list
of target platforms. We add arm64 simulator to that list.
An .xcframework can only hold one framework per platform, so the
arm64 and x86_64 simulator binaries are now lipoed together into a
single universal framework. The device and simulator binaries are
still kept as separate frameworks inside the .xcframework.
Pick-to: 6.12 6.12.0
Change-Id: Id5dad1d8fd2fcc8dbedcc9bdf314eb521bcd897a
Reviewed-by: Tor Arne Vestbø <[email protected]>