pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.22k stars 1.58k forks source link

iOS Build Fail in v5.3.2 (build succeeds with v5.3.1+1) #958

Closed clintgossett closed 1 day ago

clintgossett commented 3 years ago

Environment

Technology Version
Flutter version Channel stable, 2.2.3
Plugin version v5.3.2
Android version N/A
iOS version 9, 10, and 11
Xcode version 12.5.1

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

  1. This
  2. Than that
  3. Then

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

`

github-actions[bot] commented 3 years 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!

github-actions[bot] commented 1 day ago

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.