You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run yarn tauri ios dev failed, build with libz-sys failed,Successfully execute cargo build --target x86_64-apple-ios
source code:
use libz_sys::{crc32,Bytef};// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command#[tauri::command]fngreet(name:&str) -> String{let r = unsafe{let s = Bytef::default();crc32(123,&s,20)};format!("Hello, {}! You've been greeted from Rust! {}", name, r)}#[cfg_attr(mobile, tauri::mobile_entry_point)]pubfnrun(){
tauri::Builder::default().plugin(tauri_plugin_shell::init()).invoke_handler(tauri::generate_handler![greet]).run(tauri::generate_context!()).expect("error while running tauri application");}
error:
Undefined symbols for architecture x86_64:
"_crc32", referenced from:
tauri_app_lib::greet::hf585d5308eed4533 in libtauri_app_lib.a[168](tauri_app_lib.4c50k32uc77deasj.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Describe the bug
run
yarn tauri ios dev
failed, build withlibz-sys
failed,Successfully executecargo build --target x86_64-apple-ios
source code:
error:
Reproduction
https://github.com/nashaofu/tauri-demo.git
yarn
yarn tauri ios dev
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: