Always install the ephemeral engine copy instead of fetching from CocoaPods specs#37906
Always install the ephemeral engine copy instead of fetching from CocoaPods specs#37906jmagman merged 1 commit intoflutter:masterfrom
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. While there are exceptions to this rule, if this patch modifies code it is probably not an exception. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Reading this PR, I'm guessing the hypothetical thing this fixes is like if I flutter build in the flutter module once, then pod installed in the iOS outer app, then I went back into the flutter module and called flutter build ios --local_engine something. Then I go back to the iOS outer app and just pressed run, the engine and the App.framework would mismatch? But I'm not sure how that relates to those reported issues which seem to relate to plugins etc. |
|
Maybe they toggled between debug and profile? That might break them too if they changed their scheme/build config in between and didn't run pod install? |
|
By "local" engine I really just mean the one already in the asset cache. If pod install can't find a local pod (:path) it fetches whatever remote CocoaPod it can find, which would be some random engine version that doesn't have the same version of Dart. The old podhelper always |
|
So this has nothing to do with cleanup between build modes. It fails 100% and on the first run. |
|
This fixes our #37852 issue - we're now able to run iOS flutter module on simulator. Thank you! |
|
LGTM on the fix |
|
@xster recommended I changed the test to parse the Podfile.lock instead of actually launching the app. |
|
Still lgtm |
Description
For add-to-app the existing host app was running correctly, but the module
flutter runwill not launch:The Flutter pod was being fetched by CocoaPods instead of using the local Flutter.framework.
Related Issues
Fixes #37756.
Fixes #37852.
Tests
I added the following tests:
"Run ephemeral host app with CocoaPods"
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?