erikas-taroza / audiotags

Read and write audio metadata in Flutter. Supports multiple formats.
https://pub.dev/packages/audiotags
MIT License
11 stars 7 forks source link

Unable to run ios app using latest version #21

Open whopavan opened 3 months ago

whopavan commented 3 months ago

Was trying out the package but build fails every time on ios simulator with below errors, works just fine on android emulator.

Version used

xcode - 15.4 Simulator - iOS 17.4 audiotags - ^1.4.1

You can reproduce this error by simply adding the plugin to your project and trying to run on ios device.

Launching lib/main.dart on iPhone 15 Pro in debug mode...
Xcode build done.                                           36.2s
Failed to build iOS app
Error (Xcode): Undefined symbol: _drop_dart_object

Error (Xcode): Undefined symbol: _free_WireSyncReturn

Error (Xcode): Undefined symbol: _free_WireSyncReturnStruct

Error (Xcode): Undefined symbol: _get_dart_object

Error (Xcode): Undefined symbol: _new_box_autoadd_f64_0

Error (Xcode): Undefined symbol: _new_box_autoadd_i32_0

Error (Xcode): Undefined symbol: _new_box_autoadd_mime_type_0

Error (Xcode): Undefined symbol: _new_box_autoadd_tag_0

Error (Xcode): Undefined symbol: _new_box_autoadd_u32_0

Error (Xcode): Undefined symbol: _new_dart_opaque

Error (Xcode): Undefined symbol: _new_list_picture_0

Error (Xcode): Undefined symbol: _new_uint_8_list_0

Error (Xcode): Undefined symbol: _store_dart_post_cobject

Error (Xcode): Undefined symbol: _wire_read

Error (Xcode): Undefined symbol: _wire_write

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

Exited (1).
ahsanrahman0745 commented 3 months ago

I am also facing the same issue have you found any solution?

Launching lib/main.dart on iPhone 8 in debug mode... Running Xcode build... Xcode build done. 42.4s Failed to build iOS app Error (Xcode): Undefined symbol: _drop_dart_object

Error (Xcode): Undefined symbol: _free_WireSyncReturn

Error (Xcode): Undefined symbol: _free_WireSyncReturnStruct

Error (Xcode): Undefined symbol: _get_dart_object

Error (Xcode): Undefined symbol: _new_box_autoadd_f64_0

Error (Xcode): Undefined symbol: _new_box_autoadd_i32_0

Error (Xcode): Undefined symbol: _new_box_autoadd_mime_type_0

Error (Xcode): Undefined symbol: _new_box_autoadd_tag_0

Error (Xcode): Undefined symbol: _new_box_autoadd_u32_0

Error (Xcode): Undefined symbol: _new_dart_opaque

Error (Xcode): Undefined symbol: _new_list_picture_0

Error (Xcode): Undefined symbol: _new_uint_8_list_0

Error (Xcode): Undefined symbol: _store_dart_post_cobject

Error (Xcode): Undefined symbol: _wire_read

Error (Xcode): Undefined symbol: _wire_write

Could not build the application for the simulator. Error launching application on iPhone 8.

whopavan commented 3 months ago

@ahsanrahman0745 was literally looking at same issue, will update this thread if I find something, please do the same

bertkessels commented 10 hours ago

Same issue using Xcode version 16.1, Visual Studio Code Version: 1.95.3, AudioTags 1.4.1. It looks like Xcode cannot link the Rust functions. No solution found yet.