GregoryConrad / mimir

⚡ Supercharged Flutter/Dart Database
https://pub.dev/packages/mimir
MIT License
129 stars 10 forks source link

Ios run error #258

Closed samatzp closed 1 year ago

samatzp commented 1 year ago

flutter_mimir: ^0.0.2

Flutter: Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision f468f3366c (8 weeks ago) • 2023-07-12 15:19:05 -0700 Engine • revision cdbeda788a Tools • Dart 3.0.6 • DevTools 2.23.1

Dart: Dart SDK version: 3.0.7 (stable) (Mon Jul 24 13:17:56 2023 +0000) on "macos_arm64"

Error: Error (Xcode): Undefined symbol: _drop_dart_object

Error (Xcode): Undefined symbol: _free_WireSyncReturn

Error (Xcode): Undefined symbol: _get_dart_object

Error (Xcode): Undefined symbol: _inflate_Filter_And

Error (Xcode): Undefined symbol: _inflate_Filter_Between

Error (Xcode): Undefined symbol: _inflate_Filter_Equal

Error (Xcode): Undefined symbol: _inflate_Filter_Exists

Error (Xcode): Undefined symbol: _inflate_Filter_GreaterThan

Error (Xcode): Undefined symbol: _inflate_Filter_GreaterThanOrEqual

Error (Xcode): Undefined symbol: _inflate_Filter_InValues

Error (Xcode): Undefined symbol: _inflate_Filter_IsEmpty

Error (Xcode): Undefined symbol: _inflate_Filter_IsNull

Error (Xcode): Undefined symbol: _inflate_Filter_LessThan

Error (Xcode): Undefined symbol: _inflate_Filter_LessThanOrEqual

Error (Xcode): Undefined symbol: _inflate_Filter_Not

Error (Xcode): Undefined symbol: _inflate_Filter_NotEqual

Error (Xcode): Undefined symbol: _inflate_Filter_Or

Error (Xcode): Undefined symbol: _inflate_SortBy_Asc

Error (Xcode): Undefined symbol: _inflate_SortBy_Desc

Error (Xcode): Undefined symbol: _new_StringList_0

Error (Xcode): Undefined symbol: _new_box_autoadd_filter_0

Error (Xcode): Undefined symbol: _new_box_autoadd_mimir_index_settings_0

Error (Xcode): Undefined symbol: _new_box_autoadd_terms_matching_strategy_0

Error (Xcode): Undefined symbol: _new_box_autoadd_u32_0

Error (Xcode): Undefined symbol: _new_box_filter_0

Error (Xcode): Undefined symbol: _new_dart_opaque

Error (Xcode): Undefined symbol: _new_list_filter_0

Error (Xcode): Undefined symbol: _new_list_sort_by_0

Error (Xcode): Undefined symbol: _new_list_synonyms_0

Error (Xcode): Undefined symbol: _new_uint_8_list_0

Error (Xcode): Undefined symbol: _store_dart_post_cobject

Error (Xcode): Undefined symbol: _wire_add_documents

Error (Xcode): Undefined symbol: _wire_delete_all_documents

Error (Xcode): Undefined symbol: _wire_delete_documents

Error (Xcode): Undefined symbol: _wire_ensure_index_initialized

Error (Xcode): Undefined symbol: _wire_ensure_instance_initialized

Error (Xcode): Undefined symbol: _wire_get_all_documents

Error (Xcode): Undefined symbol: _wire_get_document

Error (Xcode): Undefined symbol: _wire_get_settings

Error (Xcode): Undefined symbol: _wire_number_of_documents

Error (Xcode): Undefined symbol: _wire_search_documents

Error (Xcode): Undefined symbol: _wire_set_documents

Error (Xcode): Undefined symbol: _wire_set_settings

Could not build the application for the simulator. Error launc 2023-09-08_17-59-52 hing application on iPhone 14 Pro Max.

GregoryConrad commented 1 year ago

Hi 👋

This happens when the "XCFramework" fails to download. Please delete your build/ directory (and a flutter clean wouldn't hurt either) and try building again (and depending on the quality of your Internet connection, this may take a few tries).

Closing this for now because it should be resolved once you delete all build outputs and try again; please re-open if a few tries does not fix the issue.

samatzp commented 1 year ago

@GregoryConrad Hi 👋 Same error after deleting build/ folder and flutter clean

P.S: Testing: https://github.com/GregoryConrad/mimir/tree/main/packages/flutter_mimir/example

GregoryConrad commented 1 year ago

Did you just clone/download the repo and are attempting to flutter run in the flutter_mimir/example directory?

If you cloned the repo locally (git clone https://github.com/GregoryConrad/mimir), do a git clean -xfd to reset all build artifacts and files to the copy on main.

GregoryConrad commented 1 year ago

For reference, I just tested this locally and this worked:

Screenshot 2023-09-08 at 11 20 52 AM
samatzp commented 1 year ago

@GregoryConrad same error after git clean -xfd But also checked in new flutter project by connecting flutter_mimir: ^0.0.2

Which flutter/dart version are u using? Macos for ARM version?

GregoryConrad commented 1 year ago

Which flutter/dart version are u using?

Flutter v3.13.0

Macos for ARM version?

Yes, macOS 13.5.1 darwin-arm64

However, any version of Flutter with Dart 3 should work fine, regardless of ARM/Intel.

How's your Internet connection?

samatzp commented 1 year ago

Internet Speed: 2023-09-08_21-27-35

samatzp commented 1 year ago

my logs - https://codeshare.io/wnkJZ9

GregoryConrad commented 1 year ago

Odd. Would you mind cloning the repo fresh one more time and then running flutter run again? Then, if it fails, could you zip up the mimir/ you just cloned and send a copy of it here to me please?

samatzp commented 1 year ago

🙌 mimir-test.zip

GregoryConrad commented 1 year ago

@zhusupq Looks like that zip didn't capture the build/ folder and other such things. Did you run flutter run before zipping that up? If so, maybe it got excluded from the zip because of the .gitignore. Could you send me a zip of just the build/ folder if you did do flutter run?

samatzp commented 1 year ago

Before sending .zip file here - I'm run flutter clean(reducing project size) Without file size file will be over 300mb

If you want full project can you send me telegram/email?

GregoryConrad commented 1 year ago

I'm run flutter clean(reducing project size)

Ahh yea, that would probably delete the build/ folder which I need to debug further.

If you want full project can you send me telegram/email?

contact@gsconrad.com

samatzp commented 1 year ago

Sorry! with build folder is same size)

mimir-test.zip

GregoryConrad commented 1 year ago

Yea, you're definitely missing the mimir binary there. Trying to figure out why that may be

GregoryConrad commented 1 year ago

In the flutter_mimir/example directory of a cloned version of mimir, can you please run:

dart pub cache clean && git clean -xfd && flutter run

That should do the trick. I forgot that when you aren't using melos, the binaries download into your pub cache and then fluter clean/git clean -xfd doesn't adequately clear the build output.

The current build system is a mess, and unfortunately there's nothing I can do about it. Looking forward to when Dart introduces native assets so this won't be an issue...

samatzp commented 1 year ago

@GregoryConrad Fruh 🎉 dart pub cache clean && git clean -xfd && flutter run helped Thank you very much and have a nice weekend!