Skip to content

iOS: Add SceneDelegate handling to fix ACQUIRE_ROOT_VIEW_CONTROLLER_FAILED - #128

Closed
Will5 wants to merge 1 commit into
ThexXTURBOXx:masterfrom
Will5:SceneDelegate
Closed

iOS: Add SceneDelegate handling to fix ACQUIRE_ROOT_VIEW_CONTROLLER_FAILED #128
Will5 wants to merge 1 commit into
ThexXTURBOXx:masterfrom
Will5:SceneDelegate

Conversation

@Will5

@Will5 Will5 commented Sep 9, 2024

Copy link
Copy Markdown

This is a follow-up from LinusU#145.

I encountered this error again, and, after some research, I found that "As of iOS 13, UIApplication.shared.delegate?.window has been deprecated. Instead, you should use the SceneDelegate to get the root view controller. If you're targeting iOS 13 and later, you should update your code to handle this.". This attempts to address that (still testing)

@Will5

Will5 commented Sep 9, 2024

Copy link
Copy Markdown
Author

This did not work yet 🙁

@ThexXTURBOXx

Copy link
Copy Markdown
Owner

Feel free to experiment a bit - I will merge this when it's working!

@ThexXTURBOXx
ThexXTURBOXx marked this pull request as draft September 20, 2024 11:14
@ThexXTURBOXx

Copy link
Copy Markdown
Owner

Closing for now due to being stale - feel free to reopen this or open another PR when ready!

@Will5

Will5 commented Sep 13, 2025

Copy link
Copy Markdown
Author

I finally came back to this, and both the before and after worked for me. I think the issue had to do with Flutter versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants