-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Zstandard macOS
Which platforms are affected?
macOS
Description
when trying to deploy from Mac with https://github.com/pcarrier/bob
Reproducing the issue
flutter create --platforms macos demo
cd flutter
flutter pub add zstandardChange the first lines of lib/main.dart to:
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:zstandard/zstandard.dart';
void main() async {
final zstandard = Zstandard();
Uint8List original = Uint8List.fromList('Hello world!'.codeUnits);
Uint8List? compressed = await zstandard.compress(original, 3);
Uint8List? decompressed = await zstandard.decompress(compressed!);
print(String.fromCharCodes(decompressed!));
}and when trying to flutter run on macOS:
2025-11-15 18:56:03.051 demo[71132:1988071] Running with merged UI and platform thread. Experimental.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'ZSTD_compressBound': dlsym(0x73d3a820, ZSTD_compressBound): symbol not found
#0 DynamicLibrary.lookup (dart:ffi-patch/ffi_dynamic_library_patch.dart:33)
#1 ZstandardMacosBindings._ZSTD_compressBoundPtr (package:zstandard_macos/zstandard_macos_bindings_generated.dart:188)
#2 ZstandardMacosBindings._ZSTD_compressBound (package:zstandard_macos/zstandard_macos_bindings_generated.dart)
#3 ZstandardMacosBindings.ZSTD_compressBound (package:zstandard_macos/zstandard_macos_bindings_generated.dart)
#4 ZstandardMacOS.compress (package:zstandard_macos/zstandard_macos.dart:49)
#5 Zstandard.compress (package:zstandard/zstandard.dart:24)
#6 main (package:demo/main.dart:8)
#7 _runMain.<anonymous closure> (dart:ui/hooks.dart:345)
#8 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:314)
#9 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:193)
Flutter Version
3.38.1
Relevant Log Output
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo