mapleafgo / clash-for-flutter

Clash的桌面客户端,支持 windows、linux、macos
MIT License
876 stars 132 forks source link

编译后的libclash.dylib没有SetHomeDir,有遇到同样问题的吗 #61

Open githubwtiantian opened 2 months ago

githubwtiantian commented 2 months ago

Launching lib/main.dart on macOS in debug mode... Building macOS application... ✓ Built build/macos/Build/Products/Debug/clash_for_flutter.app [IMPORTANT:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalSkia.mm(66)] Using the Skia rendering backend (Metal). Debug service listening on ws://127.0.0.1:60912/yiCQR9dT9VM=/ws Syncing files to device macOS... [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'SetHomeDir': dlsym(0x7ff909833cf0, SetHomeDir): symbol not found

0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33:70)

1 Clash._SetHomeDirPtr (package:clash_for_flutter/clash_generated_bindings.dart:867:75)

2 Clash._SetHomeDirPtr (package:clash_for_flutter/clash_generated_bindings.dart)

3 Clash._SetHomeDir (package:clash_for_flutter/clash_generated_bindings.dart:870:7)

4 Clash._SetHomeDir (package:clash_for_flutter/clash_generated_bindings.dart)

5 Clash.SetHomeDir (package:clash_for_flutter/clash_generated_bindings.dart:861:12)

6 CoreControl.setHomeDir. (package:clash_for_flutter/core_control.dart:55:45)

7 new Future.sync (dart:async/future.dart:306:31)

8 CoreControl.setHomeDir (package:clash_for_flutter/core_control.dart:55:14)

9 main (package:clash_for_flutter/main.dart:58:21)

Lost connection to device. the Dart compiler exited unexpectedly.