Skip to content

Set BUILD_DIR and OBJROOT when determining if plugins support arm64 simulators#90088

Merged
fluttergithubbot merged 1 commit into
flutter:masterfrom
jmagman:pod-build-dir
Sep 16, 2021
Merged

Set BUILD_DIR and OBJROOT when determining if plugins support arm64 simulators#90088
fluttergithubbot merged 1 commit into
flutter:masterfrom
jmagman:pod-build-dir

Conversation

@jmagman

@jmagman jmagman commented Sep 14, 2021

Copy link
Copy Markdown
Member

#87244 started checking plugin Xcode build settings to see if any of them do not support arm64 simulators, so the whole app can opt out of supporting those simulators.
However, when calling xcodebuild some files are cached to the OBJROOT path, which was incorrectly defaulting to ios/build (which is not gitignored). Pass in the Flutter build directory instead for build settings BUILD_DIR and OBJROOT.

Add the dgph to the iOS and macOS gitignore templates since they should never be checked in, and were the type of files being generated in the build directory.
Add a directory check to plugin_lint_mac integration test to prevent future regressions. This fails on master and passes on this PR.

Fixes #89912

@jmagman jmagman added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. t: xcode "xcodebuild" on iOS and general Xcode project management labels Sep 14, 2021
@jmagman jmagman self-assigned this Sep 14, 2021
@flutter-dashboard flutter-dashboard Bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Sep 14, 2021
@google-cla google-cla Bot added the cla: yes label Sep 14, 2021

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@fluttergithubbot fluttergithubbot merged commit ab6f2fc into flutter:master Sep 16, 2021
@jmagman jmagman deleted the pod-build-dir branch September 16, 2021 18:08
godofredoc added a commit that referenced this pull request Sep 30, 2021
* Set BUILD_DIR when determining if plugins support arm64 simulators (#90088)

* 'Update Engine revision to 6ac856380fa4f66469552ce986edf59f65f7cd68 for stable release 2.5.2'

Co-authored-by: Jenn Magder <magder@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building iOS app generates Flutter.build folder with dgph files under ios/build/

3 participants