How to build skia for iOS simulator on an M1 mac

60 views
Skip to first unread message

Luis Grimaldo

unread,
Mar 24, 2022, 8:52:17 PMMar 24
to skia-discuss
Hi,
I am able to build an iOS device build and an iOS simulator build but only for x64 systems (intel macs) by passing in the hint target_cpu = "x64" and target_os = "ios". However, with the new Apple Silicon M1 chips, the simulator now runs on arm64. Is there a workaround to build an arm64 iOS simulator build and/or is there an issue filed for this?

Thanks.

Jim Van Verth

unread,
Mar 25, 2022, 9:43:02 AMMar 25
to skia-d...@googlegroups.com
That's a good point -- I don't think we've dealt with that yet. I've filed a bug: https://bugs.chromium.org/p/skia/issues/detail?id=13098

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/8e2b797c-f171-425f-9385-08c736aa4270n%40googlegroups.com.


--

Jim Van Verth | Software Engineer | jvan...@google.com | 919-210-7664

Christian Falch

unread,
Mar 27, 2022, 1:53:35 PMMar 27
to skia-discuss
This bug also discusses the same issue, and I've also added a few comments on how I solved it:

Jim Van Verth

unread,
Mar 30, 2022, 4:24:15 PMMar 30
to skia-d...@googlegroups.com
I've just landed a CL that adds a new gn argument: ios_use_simulator. Set that to true and target_os to "ios" and you should be able to run the simulator on M1 Macs. Let me know (via https://skbug.com/12880) if there are any further issues.

Reply all
Reply to author
Forward
0 new messages