Skip to content

Improve flutter build latency on iOS #9199

@xster

Description

@xster

flutter build ios takes 30+s on my monster mac pro. Would be nice to get it faster.

Some candidates:
100+ms to read the CFBundleIdentifier from the project
1000+ms to print the build settings to do some variable substitution. Maybe we can cache this.
400+ms to check cocoapods version. Maybe we can ask for forgiveness instead of permission
1900+ms to check cocoapods dependencies. Don't know if there's any caching we can use
22000+ms to run /usr/bin/env xcrun xcodebuild clean build -configuration Release ONLY_ACTIVE_ARCH=YES -workspace Runner.xcworkspace -scheme Runner BUILD_DIR=build/ios -sdk iphoneos -arch arm64. Do we really need to clean first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)platform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions