rusty_v8 icon indicating copy to clipboard operation
rusty_v8 copied to clipboard

[WIP] Add builds for iOS

Open imWildCat opened this issue 3 years ago • 3 comments

According the gn args listed at https://v8.dev/docs/cross-compile-ios, I added required configurations in build.rs.

In addition to these targets, I plan to add support for Mac Catalyst in follow-up PRs:

$ rustc +nightly --print target-list | grep macabi
aarch64-apple-ios-macabi
x86_64-apple-ios-macabi

Can we use v8 on iOS?

TLDR: Yes.

Apple only limits HTML and JavaScript engine for browser apps:

2.5.6 Apps that browse the web must use the appropriate WebKit framework and WebKit Javascript. https://developer.apple.com/app-store/review/guidelines/#minimum-functionality

There're existing cases for non JavaScript core use cases including Hermes, V8 in NativeScript.

imWildCat avatar Jan 24 '22 15:01 imWildCat

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 24 '22 15:01 CLAassistant

You might also have to make some modifications in build.rs (gn args, etc)

littledivy avatar Jan 29 '22 17:01 littledivy

Hi @littledivy, could you approve the GH Actions to be run in this PR? Thanks in advance!

imWildCat avatar May 16 '22 09:05 imWildCat

Closing because stale. Feel free to open if you're still working on it.

littledivy avatar Jan 15 '23 03:01 littledivy