Open chairmanwow opened 3 years ago
me too
OBJC_OLD_DISPATCH_PROTOTYPES
is ignored on ARM based Macs on purpose. I've addressed this in #294.
For anyone else: crates.rs 0.7.3 version does not have this patch https://crates.io/crates/web-view
Instead do this in Cargo.toml:
[dependencies]
web-view = { git = "https://github.com/Boscop/web-view", ref = "e87e08cab3a2d500d54068ec9c7aaa055a711465" }
If somebody wanted to kick off a 0.7.4 release if there was time with that latest Mac ARM64 patch... thank you very much for doing it! awesome package nevertheless!
Hey @brandonros - seems like you're visiting a project that has mostly stalled. Over at tauri, we used this lib for a while, but then moved to the webview project, and finally decided to just bite the bullet and write our own full bindings in rust.
Please consider https://github.com/tauri-apps/wry to be the "spiritual successor" if not exactly the replacement for this repository here.
And the framework that consumes wry is called tauri, and comes with a bunch of APIs and a bundler and a whole system to get your project moving really quickly.
Hi, I'm trying to build a hello world level app using web-view. Builds perfectly on amd64 Linux. On the aarch64 apple m1, I'm running into issues even building.
I did some digging into
OBJC_OLD_DISPATCH_PROTOTYPES=1
andbuild.rs
and see you're already using the right flag to activate the old prototype that took three args. I'm confused why this is happening and wondering if this is an aarch64-specific issue? I tried settingCFLAGS_arch64_apple_darwin
to-DOBJC_OLD_DISPATCH_PROTOTYPES=1
but this probably had no effect since you do this already inbuild.rs
. I did-ferror-limit=0
for kicks and got to about 120 errors, so I'm clearly busted. I also tried setting-framework WebKit
just to see if there was something around that. Also nothing.If you have any suggestions on a fix, or if you know this is just my environment, I'd appreciate the info.
Build error below: