-
-
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
Can't build for IOS after installing plugin #203
Comments
That's because your Xcode version is too old (Xcode 10.2.1). |
Yep, after update Xcode, everything work fine! Thank you so much! |
@pichillilorenzo if I were to create a forked version that would work on Xcode 10.2, which pieces of code would I have to disable to get it working? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Hello guys!
Environment
Device information: Iphone Xr Emulator ( IOS 12.2 )
Flutter version: 1.12.16-pre.35
Dart version Dart 2.7.0
Xcode version: Xcode 10.2.1 (Build version 10E1001)
Description
On android all works fine, but when i trying to run app on IOS emulator, everything crashes.
Steps to reproduce
How i can fix that? Maybe, i specified incorrect version of any sdk somewhere?
Stacktrace/Logcat
Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 22,0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET flutter_inappwebview OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:31:17: warning: result of call to 'parse(options:)' is unused
options.parse(options: initialOptions)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:87:46: warning: conditional downcast from 'String?' to 'String' does nothing
let data = (initialData!["data"] as? String)!
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:88:54: warning: conditional downcast from 'String?' to 'String' does nothing
let mimeType = (initialData!["mimeType"] as? String)!
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:89:54: warning: conditional downcast from 'String?' to 'String' does nothing
let encoding = (initialData!["encoding"] as? String)!
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:90:52: warning: conditional downcast from 'String?' to 'String' does nothing
let baseUrl = (initialData!["baseUrl"] as? String)!
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/FlutterWebViewController.swift:252:41: warning: result of call to 'parse(options:)' is unused
inAppWebViewOptions.parse(options: inAppWebViewOptionsMap)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:206:80: warning: expression implicitly coerced from 'UIView?' to 'Any'
containerWebView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
^~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:206:85: note: provide a default value to avoid this warning
containerWebView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:206:85: note: force-unwrap the value to avoid this warning
containerWebView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:206:85: note: explicitly cast to 'Any' with 'as Any' to silence this warning
containerWebView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:207:77: warning: expression implicitly coerced from 'UIView?' to 'Any'
containerWebView_TopFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
^~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:207:82: note: provide a default value to avoid this warning
containerWebView_TopFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:207:82: note: force-unwrap the value to avoid this warning
containerWebView_TopFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:207:82: note: explicitly cast to 'Any' with 'as Any' to silence this warning
containerWebView_TopFullScreenConstraint = NSLayoutConstraint(item: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.view, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~~~~~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:210:47: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
let height = NSLayoutConstraint(item: webView, attribute: .height, relatedBy: .equal, toItem: containerWebView, attribute: .height, multiplier: 1, constant: 0)
^~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:210:47: note: provide a default value to avoid this warning
let height = NSLayoutConstraint(item: webView, attribute: .height, relatedBy: .equal, toItem: containerWebView, attribute: .height, multiplier: 1, constant: 0)
^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:210:47: note: force-unwrap the value to avoid this warning
let height = NSLayoutConstraint(item: webView, attribute: .height, relatedBy: .equal, toItem: containerWebView, attribute: .height, multiplier: 1, constant: 0)
^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:210:47: note: explicitly cast to 'Any' with 'as Any' to silence this warning
let height = NSLayoutConstraint(item: webView, attribute: .height, relatedBy: .equal, toItem: containerWebView, attribute: .height, multiplier: 1, constant: 0)
^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:211:46: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
let width = NSLayoutConstraint(item: webView, attribute: .width, relatedBy: .equal, toItem: containerWebView, attribute: .width, multiplier: 1, constant: 0)
^~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:211:46: note: provide a default value to avoid this warning
let width = NSLayoutConstraint(item: webView, attribute: .width, relatedBy: .equal, toItem: containerWebView, attribute: .width, multiplier: 1, constant: 0)
^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:211:46: note: force-unwrap the value to avoid this warning
let width = NSLayoutConstraint(item: webView, attribute: .width, relatedBy: .equal, toItem: containerWebView, attribute: .width, multiplier: 1, constant: 0)
^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:211:46: note: explicitly cast to 'Any' with 'as Any' to silence this warning
let width = NSLayoutConstraint(item: webView, attribute: .width, relatedBy: .equal, toItem: containerWebView, attribute: .width, multiplier: 1, constant: 0)
^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:212:55: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
let leftConstraint = NSLayoutConstraint(item: webView, attribute: .leftMargin, relatedBy: .equal, toItem: containerWebView, attribute: .leftMargin, multiplier: 1, constant: 0)
^~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:212:55: note: provide a default value to avoid this warning
let leftConstraint = NSLayoutConstraint(item: webView, attribute: .leftMargin, relatedBy: .equal, toItem: containerWebView, attribute: .leftMargin, multiplier: 1, constant: 0)
^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:212:55: note: force-unwrap the value to avoid this warning
let leftConstraint = NSLayoutConstraint(item: webView, attribute: .leftMargin, relatedBy: .equal, toItem: containerWebView, attribute: .leftMargin, multiplier: 1, constant: 0)
^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:212:55: note: explicitly cast to 'Any' with 'as Any' to silence this warning
let leftConstraint = NSLayoutConstraint(item: webView, attribute: .leftMargin, relatedBy: .equal, toItem: containerWebView, attribute: .leftMargin, multiplier: 1, constant: 0)
^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:213:56: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
let rightConstraint = NSLayoutConstraint(item: webView, attribute: .rightMargin, relatedBy: .equal, toItem: containerWebView, attribute: .rightMargin, multiplier: 1, constant: 0)
^~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:213:56: note: provide a default value to avoid this warning
let rightConstraint = NSLayoutConstraint(item: webView, attribute: .rightMargin, relatedBy: .equal, toItem: containerWebView, attribute: .rightMargin, multiplier: 1, constant: 0)
^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:213:56: note: force-unwrap the value to avoid this warning
let rightConstraint = NSLayoutConstraint(item: webView, attribute: .rightMargin, relatedBy: .equal, toItem: containerWebView, attribute: .rightMargin, multiplier: 1, constant: 0)
^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:213:56: note: explicitly cast to 'Any' with 'as Any' to silence this warning
let rightConstraint = NSLayoutConstraint(item: webView, attribute: .rightMargin, relatedBy: .equal, toItem: containerWebView, attribute: .rightMargin, multiplier: 1, constant: 0)
^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:214:56: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
let bottomContraint = NSLayoutConstraint(item: webView, attribute: .bottomMargin, relatedBy: .equal, toItem: containerWebView, attribute: .bottomMargin, multiplier: 1, constant: 0)
^~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:214:56: note: provide a default value to avoid this warning
let bottomContraint = NSLayoutConstraint(item: webView, attribute: .bottomMargin, relatedBy: .equal, toItem: containerWebView, attribute: .bottomMargin, multiplier: 1, constant: 0)
^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:214:56: note: force-unwrap the value to avoid this warning
let bottomContraint = NSLayoutConstraint(item: webView, attribute: .bottomMargin, relatedBy: .equal, toItem: containerWebView, attribute: .bottomMargin, multiplier: 1, constant: 0)
^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:214:56: note: explicitly cast to 'Any' with 'as Any' to silence this warning
let bottomContraint = NSLayoutConstraint(item: webView, attribute: .bottomMargin, relatedBy: .equal, toItem: containerWebView, attribute: .bottomMargin, multiplier: 1, constant: 0)
^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:217:71: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
webView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
^~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:217:76: note: provide a default value to avoid this warning
webView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:217:76: note: force-unwrap the value to avoid this warning
webView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:217:76: note: explicitly cast to 'Any' with 'as Any' to silence this warning
webView_BottomFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.bottom, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.bottom, multiplier: 1, constant: 0)
~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:218:68: warning: expression implicitly coerced from 'InAppWebView?' to 'Any'
webView_TopFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
^~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:218:73: note: provide a default value to avoid this warning
webView_TopFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:218:73: note: force-unwrap the value to avoid this warning
webView_TopFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:218:73: note: explicitly cast to 'Any' with 'as Any' to silence this warning
webView_TopFullScreenConstraint = NSLayoutConstraint(item: self.webView, attribute: NSLayoutConstraint.Attribute.top, relatedBy: NSLayoutConstraint.Relation.equal, toItem: self.containerWebView, attribute: NSLayoutConstraint.Attribute.top, multiplier: 1, constant: 0)
~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppBrowserWebViewController.swift:402:32: warning: result of call to 'parse(options:)' is unused
newInAppWebViewOptions.parse(options: newOptionsMap)
^ ~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:838:27: error: value of type 'WKPreferences' has no member 'isFraudulentWebsiteWarningEnabled'
configuration.preferences.isFraudulentWebsiteWarningEnabled = (options?.isFraudulentWebsiteWarningEnabled)!
~~~~~~~~~~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:840:80: error: use of unresolved identifier 'WKWebpagePreferences'
configuration.defaultWebpagePreferences.preferredContentMode = WKWebpagePreferences.ContentMode(rawValue: (options?.preferredContentMode)!)!
^~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1133:27: error: value of type 'WKPreferences' has no member 'isFraudulentWebsiteWarningEnabled'
configuration.preferences.isFraudulentWebsiteWarningEnabled = (options?.isFraudulentWebsiteWarningEnabled)!
~~~~~~~~~~~~~~^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1134:76: error: use of unresolved identifier 'WKWebpagePreferences'
configuration.defaultWebpagePreferences.preferredContentMode = WKWebpagePreferences.ContentMode(rawValue: (options?.preferredContentMode)!)!
^~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1421:27: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1421:53: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1421:53: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1421:53: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1490:27: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1490:53: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1490:53: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1490:53: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1525:27: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1525:53: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1525:53: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1525:53: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1611:23: warning: expression implicitly coerced from 'CFString?' to 'Any'
print(SecCopyErrorMessageString(securityError,nil))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1611:23: note: provide a default value to avoid this warning
print(SecCopyErrorMessageString(securityError,nil))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1611:23: note: force-unwrap the value to avoid this warning
print(SecCopyErrorMessageString(securityError,nil))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1611:23: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print(SecCopyErrorMessageString(securityError,nil))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1637:23: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1637:49: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1637:49: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1637:49: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1695:23: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1695:49: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1695:49: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1695:49: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1767:23: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1767:49: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1767:49: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:1767:49: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:2068:27: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:2068:53: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:2068:53: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/InAppWebView.swift:2068:53: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:61:13: warning: result of 'MyCookieManager' initializer is unused
MyCookieManager(registrar: registrar)
^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:66:9: warning: result of 'CredentialDatabase' initializer is unused
CredentialDatabase(registrar: registrar)
^ ~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:229:45: warning: result of call to 'parse(options:)' is unused
inAppBrowserOptions.parse(options: inAppBrowserOptionsMap)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:379:31: warning: result of call to 'parse(options:)' is unused
safariOptions.parse(options: options)
^ ~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:417:32: warning: result of call to 'parse(options:)' is unused
browserOptions.parse(options: optionsFallback!)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:420:32: warning: result of call to 'parse(options:)' is unused
webViewOptions.parse(options: optionsFallback!)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:425:28: warning: result of call to 'parse(options:)' is unused
browserOptions.parse(options: options)
^ ~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:428:28: warning: result of call to 'parse(options:)' is unused
webViewOptions.parse(options: options)
^ ~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:434:94: warning: forced cast from 'InAppBrowserWebViewController??' to 'InAppBrowserWebViewController' only unwraps optionals; did you mean to use '!!'?
let webViewController: InAppBrowserWebViewController = self.webViewControllers[uuid] as! InAppBrowserWebViewController
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:493:24: warning: result of call to 'parse(options:)' is unused
browserOptions.parse(options: options)
^ ~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:496:24: warning: result of call to 'parse(options:)' is unused
webViewOptions.parse(options: options)
^ ~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:501:94: warning: forced cast from 'InAppBrowserWebViewController??' to 'InAppBrowserWebViewController' only unwraps optionals; did you mean to use '!!'?
let webViewController: InAppBrowserWebViewController = self.webViewControllers[uuid] as! InAppBrowserWebViewController
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:468:13: warning: variable 'uuid' was never mutated; consider changing to 'let' constant
var uuid = uuid
~~~ ^
let
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/SwiftFlutterPlugin.swift:696:16: warning: value 'webViewController' was defined but never used; consider replacing with boolean test
if let webViewController = self.webViewControllers[uuid] {
~~~~^~~~~~~~~~~~~~~~~~~~
!= nil
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:22:27: warning: expression implicitly coerced from 'String?' to 'Any'
print((result as! FlutterError).message)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:22:53: note: provide a default value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
?? <#default value#>
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:22:53: note: force-unwrap the value to avoid this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
!
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:22:53: note: explicitly cast to 'Any' with 'as Any' to silence this warning
print((result as! FlutterError).message)
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
as Any
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:96: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:98: note: use 'as?' to perform a conditional downcast to 'String'
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
?
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:75: note: add parentheses around the cast to silence this warning
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
( )
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:178: warning: treating a forced downcast to 'String' as optional will never produce 'nil'
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:180: note: use 'as?' to perform a conditional downcast to 'String'
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
?
/Users/rrcf/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1/ios/Classes/CustomeSchemeHandler.swift:29:153: note: add parentheses around the cast to silence this warning
let urlResponse = URLResponse(url: url, mimeType: json["content-type"] as! String, expectedContentLength: -1, textEncodingName: json["content-encoding"] as! String)
^
( )
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Exited (sigterm)
The text was updated successfully, but these errors were encountered: