Open satindergrewal opened 3 years ago
found issue with rust: https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-3 It does actually has support coming for Mac Catalyst, but at the moment, it's not fully supported.
target std host notes
aarch64-apple-ios-macabi ? Apple Catalyst on ARM64
? indicates the standard library support is unknown or a work-in-progress.
I'll see if I can try some hacky way in the meantime, but we have at least tracked the accurate issue and it's expected solution direct from the language as soon as it is even available in beta, I'll try that then right now focusing on other important tasks
Pushed relevant conditional update to ZcashLightClientKit to be ready for this update: https://github.com/Meshbits/ZcashLightClientKit/commit/01b6ed0594fbe065f61fa027ad7b1a2cacfbe3e8
For compiling rust code for Mac Catalyst, I found these two relevant links: https://github.com/rust-lang/rust/pull/80215
The day this github repo gives the binary compatible with Mac Catalyst we will have a usable solution for macOS App :) https://github.com/visigoth/catalystsample
Right now compiling with nightly version of rust still gives this output:
➜ catalystsample git:(master) ✗ rustup default
nightly-x86_64-apple-darwin (default)
➜ catalystsample git:(master) ✗ rustc --version
rustc 1.55.0-nightly (6a758ea7e 2021-06-22)
➜ catalystsample git:(master) ✗ file target/x86_64-apple-ios-macabi/debug/catalystsample
target/x86_64-apple-ios-macabi/debug/catalystsample: Mach-O 64-bit executable x86_64
➜ catalystsample git:(master) ✗
Whereas like Firefox's arm64 binaries the file should show this:
➜ catalystsample git:(master) ✗ file /Applications/Firefox.app/Contents/MacOS/firefox
/Applications/Firefox.app/Contents/MacOS/firefox: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/Applications/Firefox.app/Contents/MacOS/firefox (for architecture x86_64): Mach-O 64-bit executable x86_64
/Applications/Firefox.app/Contents/MacOS/firefox (for architecture arm64): Mach-O 64-bit executable arm64
➜ catalystsample git:(master) ✗
We can do simple test of that catalystsample code in future to verify when our code is ready to test zcash sdk for macOS arm64.
Trying to compile wallet from branch
arrr-mac
gives following errors forTinyQRScanner
dependency under Pods:To resolve it, change the "macOS" version from
10..5.1
to11.0
.After that when building the project, it gives errors about
libzcashlc.a
as follows: