Fixed Xcode 16 build failed error: method does not override any method from its superclass#2274
Fixed Xcode 16 build failed error: method does not override any method from its superclass#2274andychucs wants to merge 2 commits intopichillilorenzo:masterfrom
error: method does not override any method from its superclass#2274Conversation
…od from its superclass`
|
Hey, nice to see your PR, just as a comment, there's another PR solving this issue: https://github.com/pichillilorenzo/flutter_inappwebview/pull/2241/files |
…any method from its superclass` pichillilorenzo#2274
|
I missed checking the same code to the macOS module. |
|
please ping me when this is resolved |
|
please ping me when this is resolved |
|
please ping me when this is resolved |
|
These changes will fail on Xcode version lower than 16 due to the same error this is trying to fix. I'm guessing you need to annotate the methods with |
|
@ueman Thanks for comment. I'm not sure if it's correct to add annotations. I don't have a lower version of Xcode to test now. I have checked the developer docs. It looks like there haven't been any updates to Maybe we should add an extension to |
|
After reading this https://stackoverflow.com/a/74364030, it seems you're right about not adding annotations. Instead, the code should be more explicit about the specific version of the method (at least I hope so, I haven't yet tested it) |
|
I’m currently using Xcode 15, while my colleague is on Xcode 16. I can confirm that the changes in this PR resolved the build issues on Xcode 16. However, it breaks the build on Xcode 15 with the same error. |
@kalpeshp0310 Thanks for comment. |
|
@andychucs I am not sure if the Conditional-Compilation-Block can help. |
|
Can this PR be merged without pichillilorenzo ? |
|
|
Can you paste the |
|
@andychucs I could find a few references in
Also, the build is working fine on |
|
@kalpeshp0310 Thank you very much for the testing on Xcode 15! ❤️ |
No. Please read the above discussion and the update in the issue description to learn why |
|
Released new version 6.1.0 with the fix |
|
Thank you!!!!!! |
Just to clarify, so this is not backward compatibility with the xcode 15? |



20th September 2024 Update:
WARNING: this change will cause Xcode 15 build errors if you still want to compile by old versions, do not use it. I am working on how to fix that now, if anyone knows a workaround, please let me know or just open a pr.
Because of that I made another version to fix it, please try to change ref to
xcode-15-fixand report how it works.andychucs#3
I made a few different changes based on other pr.I keep the override function evaluateJavaScript as public instead of delete or change as open.
Before the maintainer fixes it, add this in
pubspec.yaml.If you need it in the macOS app, also update your dependencies to include:
Connection with issue(s)
Resolve issue #2221 #2278 #2279 #2201
Connected to #???
Testing and Review Notes
WARNING: this change may cause Xcode 15 build errors if you still want to compile by old versions, do not use it. I am working on how to fix that now, if anyone knows a workaround, please let me know or just open a pr.
Screenshots or Videos
To Do