Skip to content

[Objective-C interop] Invalid argument(s): Failed to lookup symbol 'objc_msgSend_fpret' #829

@LastMonopoly

Description

@LastMonopoly

Hi all,

https://github.com/dart-lang/native/tree/main/pkgs/ffigen/example/objective_c
the above example no longer works when I generate bindings myself using dart run ffigen --config config.yaml

when I dart play_audio.dart test.mp3, the exception throws

Invalid argument(s): Failed to lookup symbol 'objc_msgSend_fpret': dlsym(0x3c28dd4a8, objc_msgSend_fpret): symbol not found

This is my flutter version

[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale en-CN)
    • Flutter version 3.16.0 on channel stable at /Users/xhan/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (11 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/xhan/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/xhan/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.3

This is the newly generated binding
avf_audio_bindings.dart.zip

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions