Emurgo / csl-mobile-bridge

React-native bindings for Emurgo's cardano-serialization-lib (Cardano haskell Shelley)
MIT License
23 stars 12 forks source link

Build failed in Xcode : error[E0308]: mismatched types #107

Closed divyangkhatri closed 1 month ago

divyangkhatri commented 3 months ago

Versions

"react-native": "^0.72.7", "@emurgo/csl-mobile-bridge": "^5.1.3", Xcode: 15.2 rust: cargo 1.79.0

Screenshot 2024-06-26 at 6 19 27 PM
lisicky commented 3 months ago

Hey @divyangkhatri ! Could you try rust 1.70 or 1.73 ?

divyangkhatri commented 3 months ago

@lisicky Thank you for the solution. It is working for iOS with rust version 1.70.0 But in android it throwing the error

error: cannot find macro 'debug_assert' in this scope

Screenshot 2024-06-28 at 1 01 54 PM
lisicky commented 3 months ago

@divyangkhatri my current configuration, let me know if it won't work

installed targets for active toolchain

aarch64-apple-darwin aarch64-apple-ios aarch64-apple-ios-sim aarch64-linux-android armv7-linux-androideabi i686-linux-android wasm32-unknown-unknown x86_64-apple-ios x86_64-linux-android

active toolchain

1.74-aarch64-apple-darwin (default) rustc 1.74.1 (a28077b28 2023-12-04)

lisicky commented 2 months ago

Hey @divyangkhatri , could you tell me if it helped ?

lisicky commented 1 month ago

Close, since have no answer