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

xcode build failure on xcode 15[BUG] #873

Open
AmgadMahmoud opened this issue Sep 26, 2023 · 6 comments
Open

xcode build failure on xcode 15[BUG] #873

AmgadMahmoud opened this issue Sep 26, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@AmgadMahmoud
Copy link

AmgadMahmoud commented Sep 26, 2023

Describe the bug
xcode build failure when running in ios 17 using xcode 15
with error
Failed to build iOS app
Error (Xcode): type argument 'nw_proxy_config_t' (aka 'struct nw_proxy_config *') is neither an Objective-C object nor a block type
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:119:46

Parse Issue (Xcode): Could not build module 'WebKit'
/build/ios/Debug-iphonesimulator/flutter_inappwebview/flutter_inappwebview.framework/Headers/flutter_inappwebview-Swift.h:893:8

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

To Reproduce
Steps to reproduce the behavior:
update xcode to latest version 15
try to run the app on iphone ios 17
build will fail

Expected behavior
A clear and concise description of what you expected to happen.
I expect the app to run without issues but build fails

Screenshots
If applicable, add screenshots to help explain your problem.

Technical Details:

  • Device: [e.g. iPhone6] iPhone 15 pro max
  • OS: [e.g. iOS8.1] IOS 17
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@AmgadMahmoud AmgadMahmoud added the bug Something isn't working label Sep 26, 2023
@manhhaiphp
Copy link

I have the same problem

@mechaadi
Copy link

Temporary Fix, add this to dependency_overrides

flutter_inappwebview:
  git:
    url: https://github.com/Estrelio/flutter_inappwebview.git
    ref: fix-xcode-17  

@rusfearuth
Copy link

Refere

Still showing the error:

Error (Xcode):
../../../.pub-cache/hosted/pub.dev/youtube_player_flutter-8.1.2/lib/src/player/raw_youtube_playe
r.dart:79:56: Error: The argument type 'Uri' can't be assigned to the parameter type 'WebUri?'.

@luizKorg
Copy link

luizKorg commented Oct 3, 2023

I tried (and it worked) this temporary solution of hard-changing the file to accept iOS less than 18.

@babbage
Copy link

babbage commented Oct 4, 2023

This problem is caused by this package's dependency flutter_inappwebview. They have released a v5.8.0 update that fixes this issue. Please update your dependency to resolve this issue. This is a high priority for us.

In the meantime, consumers of this package can resolve the build error by importing the higher version of the dependency explicitly in their pubspec.yaml:

  flutter_inappwebview: 5.8.0 # required for Xcode 15 until youtube_player_flutter updates its dependencies

@jagiro
Copy link

jagiro commented Oct 16, 2023

@sarbagyastha please, accept the pull request. 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

Successfully merging a pull request may close this issue.

8 participants