-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Allow specifying a project for Xcode getInfo #39782
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
Allow specifying a project for Xcode getInfo #39782
Conversation
Avoids unnecessarily breaking projects that have another .xcodeproj in their macos/ directory, which worked until the addition of the getInfo call.
|
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. |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
You'll need to update the Fake/Mock too |
Co-Authored-By: Jonah Williams <jonahwilliams@google.com>
Codecov Report
@@ Coverage Diff @@
## master #39782 +/- ##
==========================================
- Coverage 57.57% 55.97% -1.61%
==========================================
Files 194 194
Lines 18726 18729 +3
==========================================
- Hits 10782 10483 -299
- Misses 7944 8246 +302
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #39782 +/- ##
==========================================
- Coverage 57.57% 55.97% -1.61%
==========================================
Files 194 194
Lines 18726 18729 +3
==========================================
- Hits 10782 10483 -299
- Misses 7944 8246 +302
Continue to review full report at Codecov.
|
|
I'm seeing many of the following reports from crash logging on master that appear related to this change: |
|
@zanderso Hm, that suggests that there are people with configurations where they have a Runner.xcworkspace, but have renamed Runner.xcodeproj, which I wasn't expecting. I'll do a follow-up to check if Runner.xcodeproj exists before passing it, falling back to the old path. Alternately we could make it a non-crashing hard error to not have Runner.xcodeproj, since I don't think we really want people renaming the managed project, but it's easy enough to support both for now. |
|
Throwing a ToolExit is fine if it is something that the user can be expected to fix. |
|
Fix posted. I opted for defense in depth, trying to avoid the error but also handling it if it happens. |
Description
Avoids unnecessarily breaking projects that have another .xcodeproj in
their macos/ directory, which worked until the addition of the getInfo
call.
Related Issues
Replace this paragraph with a list of issues related to this PR from our issue database. Indicate, which of these issues are resolved or fixed by this PR.
Tests
I added the following tests: None
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?