Skip to content

Adjust macOS build flow - #32538

Merged
stuartmorgan-g merged 1 commit into
flutter:masterfrom
stuartmorgan-g:macos-build-tweaks
May 12, 2019
Merged

stuartmorgan-g merged 1 commit into
flutter:masterfrom
stuartmorgan-g:macos-build-tweaks

Conversation

@stuartmorgan-g

Copy link
Copy Markdown
Contributor

Description

  • Removes SYMROOT from the Generated.xcconfig. Having it causes current
    versions of Xcode to switch the project's build output to "Legacy",
    which causes anything not overridden to use a project-relative build
    directory instead of a shared directory in DerivedData, breaking
    anything with subprojects that it depends on.
    This means that flutter run and builds from Xcode will use
    completely different build directories, but that each should be
    internally consistent.

  • Moves the FlutterMacOS.framework to $SRCROOT/Flutter. This is
    consistent with the approach we're moving to for all desktop
    platforms, and avoids issues finding it now that SYMROOT doesn't match
    for the two different build modes.

Related Issues

Fixes #32494

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.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

(Technically it's breaking for desktop, but we don't have any stability expectations for desktop yet.)

- Removes SYMROOT from the Generated.xcconfig. Having it causes current
  versions of Xcode to switch the project's build output to "Legacy",
  which causes anything not overridden to use a project-relative build
  directory instead of a shared directory in DerivedData, breaking
  anything with subprojects that it depends on.
  This means that `flutter run` and builds from Xcode will use
  completely different build directories, but that each should be
  internally consistent.
- Moves the FlutterMacOS.framework to $SRCROOT/Flutter. This is
  consistent with the approach we're moving to for all desktop
  platforms, and avoids issues finding it now that SYMROOT doesn't match
  for the two different build modes.

Fixes flutter#32494
stuartmorgan-g added a commit to stuartmorgan-g/flutter-desktop-embedding that referenced this pull request May 11, 2019
Updates example and testbed for the changes in
flutter/flutter#32538

Also moves the non-generated xcconfigs out of Flutter/; this is
inconsistent with iOS, but creates a clean separation where all of
Flutter/ is generated.

@jonahwilliams jonahwilliams 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

Ahh the legacy build mode, it all makes sense! sort of..

@stuartmorgan-g
stuartmorgan-g merged commit 710a0cb into flutter:master May 12, 2019
@stuartmorgan-g
stuartmorgan-g deleted the macos-build-tweaks branch May 12, 2019 01:12
stuartmorgan-g pushed a commit to google/flutter-desktop-embedding that referenced this pull request May 12, 2019
Updates example and testbed for the changes in
flutter/flutter#32538

Also moves the non-generated xcconfigs out of Flutter/; this is
inconsistent with iOS, but creates a clean separation where all of
Flutter/ is generated.

Adds min Flutter version to testbed, which was missing.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building macOS from Xcode doesn't redirect all build output

3 participants