Closed clintgossett closed 1 day ago
👋 @clintgossett
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
Environment
Flutter Doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.2 20G95 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.59.1) [✓] Connected device (1 available)
Device information:
Description
Expected behavior: Should build for iOS successfully when running 'flutter build ipa'
Current behavior:
When running an iOS build through the command
flutter build ipa
the build fails with the following stack trace.Build fails when targeting iOS 9, 10, and 11.
Build succeeds if we downgrade the plugin version to v5.3.1+1
We built successfully to iOS since April with v5.3.2 and all of a sudden the build breaks when we attempt to use it.
I can toggle the stack trace below on and off reliably when switching between v5.3.1+1 and v5.3.2.
Steps to reproduce
Images
Stacktrace/Logcat
`Cleaning Xcode workspace... 8.2s Deleting build... 2ms Deleting .dart_tool... 1ms Deleting .packages... 0ms Deleting Generated.xcconfig... 0ms Deleting flutter_export_environment.sh... 0ms Deleting Flutter.podspec... 0ms Deleting .flutter-plugins-dependencies... 0ms Deleting .flutter-plugins... 0ms (base) clintgossett@Clints-MacBook-Pro app % flutter build ipa --flavor dev Warning: You are using these overridden dependencies:
! flutter_inappwebview 5.3.2
Running "flutter pub get" in app... 1,523ms Archiving co.firstroot.app.pb... Automatically signing iOS for device deployment using specified development team in Xcode project: A83HR5H33B Running pod install... 5.3s Running Xcode build...
Xcode archive done. 66.5s Failed to build iOS app Error output from Xcode build: ↳ ARCHIVE FAILED
Xcode's output: ↳ /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:17:44: warning: 'UIImagePickerControllerReferenceURL' is deprecated: first deprecated in iOS 11.0 - Will be removed in a future release, use PHPicker. [-Wdeprecated-declarations] NSURL referenceURL = [info objectForKey:UIImagePickerControllerReferenceURL]; ^ In module 'UIKit' imported from /Users/clintgossett/Documents/Projects/FirstRoot/app/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h:62:51: note: 'UIImagePickerControllerReferenceURL' has been explicitly marked deprecated here UIKIT_EXTERN UIImagePickerControllerInfoKey const UIImagePickerControllerReferenceURL API_DEPRECATED("Will be removed in a future release, use PHPicker.", ios(4.1, 11.0)) API_UNAVAILABLE(tvos); // an NSURL that references an asset in the AssetsLibrary framework ^ /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.m:21:47: warning: 'fetchAssetsWithALAssetURLs:options:' is deprecated: first deprecated in iOS 11 - Will be removed in a future release [-Wdeprecated-declarations] PHFetchResult<PHAsset > *result = [PHAsset fetchAssetsWithALAssetURLs:@[ referenceURL ] ^ In module 'Photos' imported from /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.5+4/ios/Classes/FLTImagePickerPhotoAssetUtil.h:6: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h:74:1: note: 'fetchAssetsWithALAssetURLs:options:' has been explicitly marked deprecated here
~~~~~~ 1 warning generated. /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/ios/Classes/SafariViewController/SafariBrowserOptions.swift:29:16: warning: unnecessary check for 'iOS'; enclosing scope ensures guard will always be true if #available(iOS 11.0, ) { ^ /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/ios/Classes/SafariViewController/SafariBrowserOptions.swift:12:14: note: enclosing scope here public class SafariBrowserOptions: Options(void)documentPicker:(UIDocumentPickerViewController )controller didPickDocumentAtURL:(NSURL )url API_DEPRECATED_WITH_REPLACEMENT("documentPicker:didPickDocumentsAtURLs:", ios(8.0, 11.0)); ^ 3 warnings generated. /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.4/ios/Classes/FileUtils.m:129:30: warning: unused variable 'exportError' [-Wunused-variable] NSError exportError = exporter.error; ^ 1 warning generated. / com.apple.ibtool.document.warnings */ /Users/clintgossett/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/ios/Storyboards/WebView.storyboard:global: warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9] ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:10:8: Error: Error when reading '../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/ios/in_app_browsertions.dart': No such file or directory import 'ios/in_app_browsertions.dart'; ^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/x509_certificate/asn1_object.dart:5:8: Error: Error when reading '../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/x509_certificate/x509_certificatedart': No such file or directory import 'x509_certificatedart'; ^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/chrome_safari_browser/android/chrome_custom_tabs_options.dart:6:8: Error: Error when reading '../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/chrome_safari_browser/chrome_safari_browserptions.dart': No such file or directory import '../chrome_safari_browserptions.dart'; ^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_webview/ios/in_app_webview_controller.dart:8:8: Error: Error when reading '../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_webview/_static_channeldart': No such file or directory import '../_static_channeldart'; ^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_webview/ios/in_app_webview_options.dart:5:8: Error: Error when reading '../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_webview/webviewart': No such file or directory import '../webviewart'; ^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:44:8: Error: Type 'IOSInAppBrowserOptions' not found. late IOSInAppBrowserOptions ios; ^^^^^^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:52:7: Error: Type 'IOSInAppBrowserOptions' not found. IOSInAppBrowserOptions? ios, ^^^^^^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/x509_certificate/asn1_object.dart:92:23: Error: Type 'X509BlockPosition' not found. ASN1Object? atIndex(X509BlockPosition x509blockPosition) { ^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/chrome_safari_browser/android/chrome_custom_tabs_options.dart:10:16: Error: Type 'ChromeSafariBrowserOptions' not found. implements ChromeSafariBrowserOptions, AndroidOptions { ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:44:8: Error: 'IOSInAppBrowserOptions' isn't a type. late IOSInAppBrowserOptions ios; ^^^^^^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:52:7: Error: 'IOSInAppBrowserOptions' isn't a type. IOSInAppBrowserOptions? ios, ^^^^^^^^^^^^^^^^^^^^^^ ../../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/lib/src/in_app_browser/in_app_browser_options.dart:56:23: Error: The method 'IOSInAppBrowserOptions' isn't defined for the class 'InAppBrowserClassOptions'.
Command PhaseScriptExecution failed with a nonzero exit code note: Using new build system note: Building targets in parallel note: Planning build note: Analyzing workspace note: Constructing build description note: Build preparation complete
`