-
Notifications
You must be signed in to change notification settings - Fork 362
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
iOS cupertino_http error: Unhandled Exception: Invalid argument(s): Couldn't resolve native function '_wrapListenerBlock_1a6kixf' #1417
Comments
@Shubham1993 could you provide the output from And this is with |
@brianquinlan Yes, this issue is coming on cupertino_http 2.0.1. Below is output for flutter doctor -v.
|
@Shubham1993 And you are running this on a real iOS device (not the simulator) in debug mode (you could include the command used to run flutter)? |
This error means some of cupertino_http's native code isn't being linked into the app. The way I'd debug this is to use |
@brianquinlan I have tried running the app on simulator and real device both. On real device first i tried without debug mode and then in debug mode, but in each case getting same error. for real device in debug mode i used command - flutter run -d {UUID} |
@liamappelbe I ran nm | grep 'wrapListenerBlock_1a6kixf' command for multiple output files and dylibs, but it returned empty response.
|
I am trying to run the sample app given with cupertino_http package in iOS. But I am getting below error.
`NSBundle file:///System/Library/PrivateFrameworks/MetalTools.framework/ principal class is nil because all fallbacks have failed
flutter: The Dart VM service is listening on http://127.0.0.1:53003/tmg2xds8gus=/
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Couldn't resolve native function '_wrapListenerBlock_1a6kixf' in 'package:cupertino_http/src/native_cupertino_bindings.dart' : No asset with id 'package:cupertino_http/src/native_cupertino_bindings.dart' found. No available native assets. Attempted to fallback to process lookup. dlsym(RTLD_DEFAULT, _wrapListenerBlock_1a6kixf): symbol not found.
#0 Native._ffi_resolver.#ffiClosure0 (dart:ffi-patch/ffi_patch.dart)
#1 Native._ffi_resolver_function (dart:ffi-patch/ffi_patch.dart:1523:20)
#2 wrapListenerBlock_1a6kixf (package:cupertino_http/src/native_cupertino_bindings.dart)
#3 ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionTask_NSError.listener (package:cupertino_http/src/native_cupertino_bindings.dart:65985:21)
#4 NSURLSessionDataDelegate.URLSession_task_didCompleteWithError. (package:cupertino_http/src/native_cupertino_bindings.dart:66922:14)
#5 ObjCProtocolListenableMethod.implementAsListener (package:objective_c/src/protocol_builder.dart:80:69)
#6 URLSession.delegate (package:cupertino_http/src/cupertino_api.dart:854:10)
#7 new URLSession.sessionWithConfiguration (package:cupertino_http/src/cupertino_api.dart:1070:13)
#8 new CupertinoClient.fromSessionConfiguration (package:cupertino_http/src/cupertino_client.dart:240:32)
#9 main (package:cupertino_http_example/main.dart:23:34)
#10 _runMain. (dart:ui/hooks.dart:301:23)
#11 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:297:19)
#12 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)`
The text was updated successfully, but these errors were encountered: