Skip to content
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

fails to run on ios - MethodNotImplemented #253

Open
vipinagrahari opened this issue Nov 24, 2018 · 5 comments
Open

fails to run on ios - MethodNotImplemented #253

vipinagrahari opened this issue Nov 24, 2018 · 5 comments

Comments

@vipinagrahari
Copy link

vipinagrahari commented Nov 24, 2018

I am using this plugin and trying to run my app on iOS simulator. However when I try to run this from xcode I am getting this error.

Undefined symbols for architecture i386:
  "_FlutterMethodNotImplemented", referenced from:
      -[FlutterWebviewPlugin handleMethodCall:result:] in FlutterWebviewPlugin.o
  "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
      objc-class-ref in FlutterWebviewPlugin.o
ld: symbol(s) not found for architecture i386

Plugin version - flutter_webview_plugin: ^0.3.0+2

Please help me fix this. Thanks for making this awesome library.

output of flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.11.9, on Mac OS X 10.14.1 18B75, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] Connected device (1 available)

• No issues found!


@charafau
Copy link
Collaborator

charafau commented Nov 26, 2018

Thanks for reporting, this looks strange, it should work. Does example project work on your machine?

Also, I see you're running this from xcode - you should run your project with flutter run command

@vipinagrahari
Copy link
Author

when run using flutter run command. The app shows a black screen and then closes.
Also I am getting similar error for few other plugins that I am using such as connectivity, fluttertoast etc.

@MilkBiscuit
Copy link

Have same problem here, flutter run command works but can not build inside Xcode.

@lawonga
Copy link

lawonga commented May 30, 2019

Same problem here :/

@Soniyah1
Copy link

Facing the same issue.

ld: warning: ignoring file $FLUTTER_ROOT/bin/cache/artifacts/engine/ios-release/Flutter.xcframework/ios-x86_64-simulator/Flutter.framework/Flutter, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:
"OBJC_CLASS$_FlutterMethodChannel", referenced from:
objc-class-ref in FlutterWebviewPlugin.o
"_FlutterMethodNotImplemented", referenced from:
-[FlutterWebviewPlugin handleMethodCall:result:] in FlutterWebviewPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Showing All Messages
Undefined symbol: OBJC_CLASS$_FlutterMethodChannel
Undefined symbol: _FlutterMethodNotImplemented

The app works with "flutter run" but is not working with XCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants