Repository navigation
[webview_flutter_wkwebview] ARC Semantic Issue (Xcode): No visible @interface for 'FWFWebView' declares the selector 'setInspectable:' #129587
Copy link
Copy link
Closed
flutter/packages
#4340Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Upgrade webview_flutter_wkwebview to 3.6.0
Expected results
Successful build
Actual results
Builds are failing with following error:
flutter \
build ipa \
--release \
--no-codesign \
--no-pub \
--build-name=2.0.0 \
--build-number=20141
shell: /bin/bash -e {0}
env:
SSH_AUTH_SOCK: ***
SSH_AGENT_PID: ***
FLUTTER_ROOT: /Users/runner/hostedtoolcache/flutter/stable-3.10.5-x6[4] ***
PUB_CACHE: /Users/runner/hostedtoolcache/flutter/stable-3.10.[5] ***
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Archiving ***...
Adding input path to Thin Binary build phase.
Running pod install... 4.9s
Running Xcode build...
Xcode archive done. 25.[8](https://github.com/***)s
Failed to build iOS app
ARC Semantic Issue (Xcode): No visible @interface for 'FWFWebView' declares the selector 'setInspectable:'
/Users/runner/hostedtoolcache/flutter/stable-3.[10]***
Encountered error while archiving for device.
Error: Process completed with exit code 1.
Some irrelevant strings were replaced with ***
Code sample
Code sample
This issue is webview package related so I don't believe any code sample is applicable. Possibly any example app using webview should fail build for iOS.
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.5, on macOS 12.6.6 21G646 darwin-x64, locale en)
• Flutter version 3.10.5 on channel stable at /Users/runner/hostedtoolcache/flutter/stable-3.10.5-x64
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (13 days ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/runner/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = /Users/runner/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/runner/Library/Android/sdk
• Java binary at: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.372-7/x64/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (Temurin)(build 1.8.0_372-b07)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode_14.2.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 12.6.6 21G6[46]*** darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.[57]***35.133
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data
along with package dependencies, and crash reporting to send basic crash reports.
This data is used to help improve the Dart platform, Flutter framework, and related tools.
Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:
flutter --disable-telemetry.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).```
</details>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Activity
SPodjasek commentedon Jun 26, 2023
I can confirm that after reverting from:
to
builds are successful again.
stuartmorgan-g commentedon Jun 27, 2023
We'll need to
__IPHONE_OS_VERSION_MAX_ALLOWED-gate the new codepath to support older versions of Xcode that are still supported by the tool. @bparrishMines can you add that?(The issue here is that the new API is 16.4+, and Xcode 14.2 doesn't have the iOS 16.4 SDK, so we need both a runtime check and and compile-time check.)
thangldvn commentedon Jun 27, 2023
how can i fix the issue when i am using macos monterey, which can not update xcode to 14.2
SPodjasek commentedon Jun 27, 2023
@thangldvn I see that my GitHub macOS runners are also on Monterey - so if you lock
webview_flutter_wkwebviewpackage to v3.5.0 it should work. Breaking change came with 3.6.0.thangldvn commentedon Jun 27, 2023
@SPodjasek actually i use package, webview_flutter, which depends on webview_flutter_wkwebview. when i run
flutter pub get, the pubspec.lock files are always is webview_flutter_wkwebview version 3.6.0. how can i fix thisSPodjasek commentedon Jun 27, 2023
@thangldvn Use
dependency_overrideslike this:even though
webview_flutter_wkwebviewisn't your direct dependency it will force it's version to 3.5.0. After this issue gets a fix just remove this override.HarshuPatel007 commentedon Jun 30, 2023
fix: fix build for iOS
[webview_flutter_wkwebview] Fixes inspectable compile-time error and …
github-actions commentedon Jul 18, 2023
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, including the output of
flutter doctor -vand a minimal reproduction of the issue.[webview_flutter_wkwebview] Fixes inspectable compile-time error and …
[webview_flutter_wkwebview] Fixes inspectable compile-time error and …
[webview_flutter_wkwebview] Fixes inspectable compile-time error and …