Warchant / sr25519-crust

C bindings over RUST sr25519 https://github.com/w3f/schnorrkel
Apache License 2.0
31 stars 22 forks source link

Undefined symbols for architecture x86_64 #26

Closed yuzhiyou1990 closed 5 years ago

yuzhiyou1990 commented 5 years ago

Some errors occurred on the iOS system.

Undefined symbols for architecture x86_64: "_readdir$INODE64", referenced from: _macho_try_dsym in libsr25519crust.a(macho.o) _macho_add in libsr25519crust.a(macho.o) "_opendir$INODE64", referenced from: std::sys::unix::fs::readdir::h714714ee58a81923 in libsr25519crust.a(std-f5ac182b2a26610e.std.6cj6x2el-cgu.0.rcgu.o) _macho_try_dsym in libsr25519crust.a(macho.o) _macho_add in libsr25519crust.a(macho.o) "_readdirr$INODE64", referenced from: $LT$std..sys..unix..fs..ReadDir$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h3275646fa836ad24 in libsr25519crust.a(std-f5ac182b2a26610e.std.6cj6x2el-cgu.0.rcgu.o) ld: symbol(s) not found for architecture x86_64

Warchant commented 5 years ago

Describe steps what you're doing

yuzhiyou1990 commented 5 years ago

After cmake processing successfully, use libsr25519crust.a in iOS project

burdges commented 5 years ago

I suspect getrandom needs OS symbols for file access, so make sure you're using it correctly. You could control it by including it yourself since cargo features are additive.