Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Nov 18, 2020

Description

#59044 migrated the Podfile logic into the tool, and #59201 introduced a soft warning encouraging users to regenerate their Podfile (available in 1.20.0-1.0.pre, 2 stables ago). As of #70224 the Flutter framework search paths are hooked up in the tool-side code, so apps with the old Podfile won't compile anymore (Flutter.framework won't be found).

  1. Switch the warning message to a tool exit.
  2. Remove the now-dead FLUTTER_FRAMEWORK_DIR build setting logic for iOS. It's still needed for macOS.
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'

Tests

  • Updated call sites
  • Added runs macOS pod install, if Manifest.lock is missing
  • Added FLUTTER_FRAMEWORK_DIR check to macOS build supports standard desktop build options

@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 Nov 18, 2020
@jmagman jmagman self-assigned this Nov 18, 2020
@google-cla google-cla bot added the cla: yes label Nov 18, 2020
@jmagman jmagman force-pushed the deprecate-old-podfile branch from 70d4ed4 to 19228cf Compare November 18, 2020 02:36

final bool didPodInstall = await globals.cocoaPods.processPods(
xcodeProject: xcodeProject,
engineDir: flutterFrameworkDir(buildMode),
Copy link
Member Author

Choose a reason for hiding this comment

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

This is wrong on macOS and is pointing to the iOS engine artifacts directory, not sure how (if) it's working on macOS...

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants