Skip to content

Add COMPILER_INDEX_STORE_ENABLE=NO to Xcode build arguments #37231

Closed

Description

@andrijasinski

This issue is triggered due to an inability to pass Xcode build arguments to flutter build ios command.

Use case

Indexing in Xcode is used mostly for

  • Autocomplete
  • Ability to quickly jump to definition
  • Get class and method help by alt clicking.

None of these are necessary to run builds in a CI environment and disabling indexing has shown significant improvement in build speeds for developers.

Proposal

To improve the performance of flutter build process in CI environment I suggest adding buildCommands.add('COMPILER_INDEX_STORE_ENABLE=NO'); line to packages/flutter_tools/lib/src/ios/mac.dart:182-284 and add this line in case if environment variable CI exists and equals to true. Moreover, I would like to also suggest adding support for any kind of additional arguments for xcodebuild command. For example, execution of flutter build ios -- FOO=BAR will end up in xcrun xcodebuild ... FOO=BAR.

Activity

  1. added
    t: xcode"xcodebuild" on iOS and general Xcode project management
    toolAffects the "flutter" command-line tool. See also t: labels.
    c: new featureNothing broken; request for a new capability
    on Jul 31, 2019
  2. jmagman commented on Aug 17, 2019

    @jmagman
    Member

    Fixed with #37378.

  3. github-actions commented on Aug 28, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityt: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions