-
-
Notifications
You must be signed in to change notification settings - Fork 25
Got it working on simulator, issue on real device - what am I missing? #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@xonaman hello. could you please take a look at whether the symbol is exists, you can refer to #24 (comment) |
I assume you mean
|
Yes, it is. did you run setup manually? since i see 'opencv_dart.framework', it should be 'opencv_dart.xcframework', and there should be two subdirectory in it, arm64 for real device and x86_64 for simulator, cd to arm64 and run 'symbols opencv_dart | grep IMRead', and then tell me the result please. I do not use iPhone so can't test it by myself, what i can help is give you the possible solution, hope you won't be bored. |
@xonaman The correct structure of you can try to run setup manually with |
@rainyl After
I build with that again using |
I have no apple devices so can't test it, but it seems every thing is okay in the above logs. not sure why. |
No response for a long time, I am going to close this issue, feel free to reopen it again if anyone still have more problems. For the solution, please check the advice posted by abdelaziz-mahdy #200 (comment), I cant test it. |
I got the same problems :(
symbols opencv_dart | grep IMRead
0x000000000009a9b0 ( 0x2f0) Image_IMRead [FUNC, EXT, NameNList, MangledNameNList, Merged, NList, FunctionStarts]
0x000000000009c460 ( 0x340) Image_IMRead_Async [FUNC, EXT, NameNList, MangledNameNList, Merged, NList, FunctionStarts] |
@kreazyme try to set the strip style, https://docs.flutter.dev/platform-integration/ios/c-interop#stripping-ios-symbols |
Finnaly, I try to |
Great! Thanks for your solution~ |
I think that should be added to readme, to avoid the problem in the future |
Agree, and a Q&A section is necessary. |
@abdelaziz-mahdy your solution worked in my case. Thank you so much! |
glad to help <3 |
@frg-x Get it, I am working on it. |
Hey!
I am using version 1.2.1 and got everything working on the simulator (iOS).
When building for release and running that on a real device (iOS), I encounter the following issue:
Invalid argument(s): Failed to lookup symbol 'Image_IMRead_Async': dlsym(RTLD_DEFAULT, Image_IMRead_Async): symbol not found
I have looked into #144 and can confirm that
opencv_dart.xcframework
exists in~/.pub-cache/hosted/pub.dev/opencv_dart-1.2.1/ios
.I think there must be some setting that I need to enable to make the libs shipping with the release build.
Can anyone help?
The text was updated successfully, but these errors were encountered: