mxcl / xcodebuild

A continuously resilient `xcodebuild` “GitHub Action”. Also it’s the best.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`xcodebuild -list -json` is exceptionally slow

mxcl opened this issue · comments

In our CI builds the list operation takes ~21 seconds, and the build itself takes ~6 seconds (!)

image

This is insane, it will be worth investing time to figure out alternatives or optimizations.

Caught it:

https://github.com/mxcl/StreamReader/pull/4/checks?check_run_id=2765489872

{
  "project" : {
    "configurations" : [
      "Debug",
      "Release"
    ],
    "name" : "StreamReader",
    "schemes" : [
      "StreamReader-Package"
    ],
    "targets" : [
      "Path",
      "Path.swiftPackageDescription",
      "StreamReader",
      "StreamReaderPackageDescription"
    ]
  }
}
build session not created after 15 seconds - still waiting

fucking lol. What a crap tool xcodebuild is.

Oops. At least it’s not in the middle of the JSON blob?

Was the slow runtime just due to virtualization (expected), or was there something else going on here?

Not fixed. There might be faster ways to get this info.