Missing Dart_InitializeApiDL
symbol in plugin using package:objective_c #1671
Description
I wrote and tested my code in Swift, made a wrapper for it in Objective C, everything works up to this point. Now I need to call this code from Dart. I turned to the ffigen package and for several days I could not achieve a working result. Then I decided to check the simplest option - and I found that even base Swift example here does not work (
I have the macOs 13.7 installed.
I get the following error message when I try to run the example after all the preparation described in the readme (for default example pubspec.yaml):
swift_api_bindings.dart:26780:12: Error: Can't declare a member that conflicts with an inherited one.
bool get isProxy {
^^^^^^^
../../../objective_c/lib/src/objective_c_bindings_generated.dart:6785:8: Context: This is the inherited member.
bool isProxy() {
^^^^^^^
Or for dependencies: objective_c: ^3.0.0, ffigen: ^15.0.0:
swift_api_bindings.dart:25294:12: Error: Can't declare a member that conflicts with an inherited one.
bool get isProxy {
^^^^^^^
../../../../../../../.pub-cache/hosted/pub.dev/objective_c-3.0.0/lib/src/objective_c_bindings_generated.dart:6785:8: Context: This is the inherited member.
bool isProxy() {
^^^^^^^
Metadata
Assignees
Type
Projects
Status
Todo