Skip to content
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

Error while building ios app #2144

Closed
2 tasks done
melbanna40 opened this issue May 15, 2024 · 1 comment
Closed
2 tasks done

Error while building ios app #2144

melbanna40 opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@melbanna40
Copy link

  • I have read the Getting Started section
  • I have already searched for the same problem

Environment

Technology Version
Flutter version 3.22.0
Plugin version 6.0.0
Android version
iOS version 17.5
macOS version 14.5
Xcode version 15.4
Google Chrome version

Device information:
Error is because "flutter_inappwebview_ios 1.0.13" package

Description

Expected behavior:
App must build fine
Current behavior:
an error occured

Steps to reproduce

just building app

Stacktrace/Logcat

Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 331.0s
Failed to build iOS app
Error output from Xcode build:

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:ECE5A566-5336-41EB-9A0F-6C7D9954E1A7, OS:17.5, name:iPhone 15 Pro Max }
{ platform:iOS Simulator, id:ECE5A566-5336-41EB-9A0F-6C7D9954E1A7, OS:17.5, name:iPhone 15 Pro Max }
** BUILD FAILED **

Xcode's output:

/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:18:38: warning: 'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(::)'
let secTrustEvaluateStatus = SecTrustEvaluate(serverTrust, &secResult);
^
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:18:38: note: use 'SecTrustEvaluateWithError(::)' instead
let secTrustEvaluateStatus = SecTrustEvaluate(serverTrust, &secResult);
^~~~~~~~~~~~~~~~
SecTrustEvaluateWithError
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:40:9: warning: 'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(::)'
SecTrustEvaluate(serverTrust, &secResult);
^
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:40:9: note: use 'SecTrustEvaluateWithError(::)' instead
SecTrustEvaluate(serverTrust, &secResult);
^~~~~~~~~~~~~~~~
SecTrustEvaluateWithError
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Util.swift:86:25: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to 'WKDataDetectorTypes.lookupSuggestion'
return .spotlightSuggestion
^
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:18:38: warning: 'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(::)'
let secTrustEvaluateStatus = SecTrustEvaluate(serverTrust, &secResult);
^
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:18:38: note: use 'SecTrustEvaluateWithError(::)' instead
let secTrustEvaluateStatus = SecTrustEvaluate(serverTrust, &secResult);
^~~~~~~~~~~~~~~~
SecTrustEvaluateWithError
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:40:9: warning: 'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(::)'
SecTrustEvaluate(serverTrust, &secResult);
^
/Users/mac/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/Types/URLProtectionSpace.swift:40:9: note: use 'SecTrustEvaluateWithError(::)' instead
SecTrustEvaluate(serverTrust, &secResult);
^~~~~~~~~~~~~~~~
SecTrustEvaluateWithError
Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

@melbanna40 melbanna40 added the bug Something isn't working label May 15, 2024
Copy link

👋 @melbanna40

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant