Skip to content

Add caching for iOS build #2462

Open

Description

@ann0see

Has this feature been discussed and generally agreed?
No

Describe the solution you'd like
Since #2355 has been merged, we should also use caching/parallelising for the iOS build.

Describe alternatives that have been considered

/

Activity

  1. ann0see commented on Mar 5, 2022

    @ann0see
    MemberAuthor

    To me it seems as if parallelising isn't really needed. Probably we could use the caching logic from macOS?

    @hoffie ?

  2. hoffie commented on Mar 7, 2022

    @hoffie
    Member

    To me it seems as if parallelising isn't really needed

    Do you think it's already being used? I've got zero experience with Xcode or xcodebuild itself, but a quick search suggests that the relevant options would be

    defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks `sysctl -n hw.ncpu`
    defaults write com.apple.dt.Xcode PBXNumberOfParallelBuildSubtasks `sysctl -n hw.ncpu`
    

    But maybe that is already the default? Do you have a way to check? If not, it seems to be possible to read it like that:

    defaults read com.apple.dt.xcodebuild
    defaults read com.apple.dt.Xcode
    

    Probably we could use the caching logic from macOS?

    Yes, it looks like the paths for (a)qt and pip should be the same so the same logic can be used. I guess it should still be duplicated as we would otherwise rely on iOS and macOS using the exact same versions. The cache key has to be adjusted as well, of course.

  3. ann0see commented on Mar 7, 2022

    @ann0see
    MemberAuthor

    Do you think it's already being used?

    I think I googled it once and I think I read that it is enabled by default (I assume this to be true since the build time is not that long).

    Probably caching should go in with your refactoring.

  4. ann0see commented on Apr 22, 2022

    @ann0see
    MemberAuthor

    @hoffie sorry to tag you here again, but this issue is still outstanding? Feel free to tag it for the next release.

  5. added
    toolingChanges to the automated build system
    on May 21, 2023
  6. added
    bugSomething isn't working
    and removed
    bugSomething isn't working
    on May 6, 2024
  7. added this to the Release 4.0.0 milestone on Apr 26, 2026
  8. moved this from Triage to In Progress in Trackingon Sep 5, 2026
  9. self-assigned this
    on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requestFeature requesttoolingChanges to the automated build system

Type

No type

Projects

  • Status
    In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions