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

Revert "Load iOS dart bundle by URL fallback" #23054

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Dec 14, 2020

Reverts #22997

This is causing
-[FlutterDartProject flutterAssetsName:] to return flutter_assets instead of Frameworks/App.framework/flutter_assets, which is then passed into [[NSBundle mainBundle] pathForResource:asset ofType:nil]; which returns nil.

https://github.com/flutter/plugins/blob/0b158bd73e9924a4c57c9b3cea0e450ba5533ce0/packages/video_player/video_player/ios/Classes/FLTVideoPlayerPlugin.m#L63-L66
crashes:

2020-12-14 10:28:34.735911-0800 Flutter Gallery[5463:1857812] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'

@jmagman jmagman self-assigned this Dec 14, 2020
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmagman jmagman added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Dec 14, 2020
@jmagman jmagman merged commit 2bc94c4 into master Dec 14, 2020
@jmagman jmagman deleted the revert-22997-app-load-ios branch December 14, 2020 21:12
gspencergoog pushed a commit to gspencergoog/engine that referenced this pull request Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes platform-ios waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants