-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 grammar error when flutter run
#60
Comments
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git Xcode 10.1 |
ps: I can run the example in |
This is strange. From the errors, I can see that the problem is, when it compiles, it uses swift 4.2 and not 4.0, that is the correct one. Could you test this in some way? However, I will try to upgrade the code to 4.2 |
I guess the question is somewhere I do not config well, cause I can run successfully by create a new project. |
@liusxc open
with Take a look at the |
I've already tried this, but it doesn't work. |
I can run a new example project well. |
Try |
thanks for reply |
@AlasKuNull what errors?? Did you convert the code from swift 4.0 to 4.2? |
@AlasKuNull I'm facing the same issue, what did you do? |
@pichillilorenzo some variables and functions are obsoleted in swift 4.2 and the new error in swift 4.0 is |
Xcode build done. 72.1s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET webview_flutter OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/aheathcliff/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappbrowser-1.0.1/ios
/Classes/FlutterWebViewController.swift:34:17: warning: result of call to 'parse(options:)' is unused
options.parse(options: initialOptions)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/aheathcliff/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappbrowser-1.0.1/ios
/Classes/FlutterWebViewController.swift:50:46: warning: conditional downcast from 'String?' to 'String' does
nothing
let data = (initialData!["data"] as? String)!
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Could not build the application for the simulator.
Error launching application on iPhone X.
The text was updated successfully, but these errors were encountered: