Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: symbol(s) not found for architecture arm64 #2104

Closed
mdddj opened this issue Jun 18, 2024 · 6 comments
Closed

ld: symbol(s) not found for architecture arm64 #2104

mdddj opened this issue Jun 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@mdddj
Copy link

mdddj commented Jun 18, 2024

Describe the bug

can not start by macos

Steps to reproduce

[package]
name = "erp_large_order_loader"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib", "staticlib"]

[dependencies]
flutter_rust_bridge = "=2.0.0-dev.40"
reqwest = { version = "0.12.5", features = ["json"] }
tokio = { version = "1", features = ["full"] }
openssl = { version = "0.10", features = ["vendored"] }

Logs

-- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-0006395034D8801E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006000-0006395034D8801E, name:My Mac }
Undefined symbols for architecture arm64:
  "_SCDynamicStoreCopyProxies", referenced from:
      system_configuration::dynamic_store::SCDynamicStore::get_proxies::h4957975742f7b341 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCDynamicStoreCreateWithOptions", referenced from:
      system_configuration::dynamic_store::SCDynamicStore::create::h627a65c8e7b83553 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkInterfaceCopyAll", referenced from:
      system_configuration::network_configuration::get_interfaces::hcee1e8301397e892 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkInterfaceGetBSDName", referenced from:
      system_configuration::network_configuration::SCNetworkInterface::bsd_name::h623b54478cf29bd6 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkInterfaceGetInterfaceType", referenced from:
      system_configuration::network_configuration::SCNetworkInterface::interface_type_string::h1ce207794cc7eb7c in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkInterfaceGetLocalizedDisplayName", referenced from:
      system_configuration::network_configuration::SCNetworkInterface::display_name::hfc03b16f2b583b51 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityCreateWithAddress", referenced from:
      _$LT$system_configuration..network_reachability..SCNetworkReachability$u20$as$u20$core..convert..From$LT$core..net..socket_addr..SocketAddr$GT$$GT$::from::h7a1fd4312b08936f in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityCreateWithAddressPair", referenced from:
      system_configuration::network_reachability::SCNetworkReachability::from_addr_pair::hecf354f46fec819a in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityCreateWithName", referenced from:
      system_configuration::network_reachability::SCNetworkReachability::from_host::h25acab4a416bb6c1 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityGetFlags", referenced from:
      system_configuration::network_reachability::SCNetworkReachability::reachability::h9ce9fcaef426fbdf in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      system_configuration::network_reachability::SCNetworkReachability::schedule_with_runloop::h09dc3076cb79bb02 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      system_configuration::network_reachability::SCNetworkReachability::unschedule_from_runloop::h7412ffdda6ed4805 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkServiceCopyAll", referenced from:
      system_configuration::network_configuration::SCNetworkService::get_services::h5abe5eacde220ed4 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkServiceGetEnabled", referenced from:
      system_configuration::network_configuration::SCNetworkService::enabled::h7bd1655cdc58b489 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkServiceGetInterface", referenced from:
      system_configuration::network_configuration::SCNetworkService::network_interface::hbec039aedae93e87 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkServiceGetServiceID", referenced from:
      system_configuration::network_configuration::SCNetworkService::id::h4580cf5462b6e891 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkSetCopyCurrent", referenced from:
      system_configuration::network_configuration::SCNetworkSet::new::he40755f2f1debb09 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_SCNetworkSetGetServiceOrder", referenced from:
      system_configuration::network_configuration::SCNetworkSet::service_order::h1f3c4967ee3794da in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCDynamicStoreUseSessionKeys", referenced from:
      system_configuration::dynamic_store::SCDynamicStoreBuilder$LT$T$GT$::create_store_options::h19d348c9588654f7 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCNetworkInterfaceType6to4", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeBluetooth", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeBond", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeBridge", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeEthernet", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeFireWire", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeIEEE80211", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeIPSec", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeIPv4", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeIrDA", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeL2TP", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeModem", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypePPP", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypePPTP", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeSerial", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeVLAN", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCNetworkInterfaceTypeWWAN", referenced from:
      system_configuration::network_configuration::SCNetworkInterfaceType::from_cfstring::h62d905b875998698 in liberp_large_order_loader.a[arm64][194](system_configuration-3443f07779de7ac5.system_configuration.454ac1bceecc2583-cgu.0.rcgu.o)
  "_kSCPropNetProxiesHTTPEnable", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCPropNetProxiesHTTPPort", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCPropNetProxiesHTTPProxy", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCPropNetProxiesHTTPSEnable", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCPropNetProxiesHTTPSPort", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
  "_kSCPropNetProxiesHTTPSProxy", referenced from:
      reqwest::proxy::get_from_platform_impl::h547975576f8cc710 in liberp_large_order_loader.a[arm64][178](reqwest-30861f09cc2bbba0.reqwest.921dad3b9bbff0ec-cgu.06.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/Users/ldd/qilin_erp/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 14.5.99. (in target 'Reachability' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **

Expected behavior

No response

Generated binding code

No response

OS

Macos

Version of flutter_rust_bridge_codegen

2.0.0-dev.40

Flutter info

3.22

Version of clang++

No response

Additional context

No response

@mdddj mdddj added the bug Something isn't working label Jun 18, 2024
@fzyzcjy
Copy link
Owner

fzyzcjy commented Jun 19, 2024

Hi, looks like this is because the Rust package you are using does not seem to be happy when compiling to arm64. Maybe ask / check the doc of that package to see whether there is something.

@fzyzcjy fzyzcjy added the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Jun 19, 2024
@mdddj mdddj closed this as completed Jun 19, 2024
@fzyzcjy fzyzcjy removed the awaiting Waiting for responses, PR, further discussions, upstream release, etc label Jun 19, 2024
@j4qfrost
Copy link

j4qfrost commented Jun 21, 2024

@mdddj did you resolve this issue and how?

Edit: fixed it.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jun 21, 2024

@j4qfrost Btw curious how did you fix it? This may be helpful for future people as well

@j4qfrost
Copy link

j4qfrost commented Jun 21, 2024

[patch.crates-io]
system-configuration = { git = "https://github.com/mullvad/system-configuration-rs", version = "0.6.0" }

Didn't read into the details about why, but this package is at version 0.5.2 on reqwest. They bumped it to 0.6.0 to fix this exact issue but had to roll back because it broke something else. I figured it would be fixed by the time someone had to find this issue.

@fzyzcjy
Copy link
Owner

fzyzcjy commented Jun 21, 2024

I see :)

Copy link
Contributor

github-actions bot commented Jul 6, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants