Xcode 15 beta 5 error: Invalid Swift parseable output message (malformed JSON)

This is new in Xcode 15 beta 5. Command SwiftCompile emitted errors but did not return a nonzero exit code to indicate failure.

error: Invalid Swift parseable output message (malformed JSON): `0` (in target 'HiCoffee' from project 'HiCoffee')
error: Invalid Swift parseable output message (malformed JSON): `1` (in target 'HiCoffee' from project 'HiCoffee')
error: Invalid Swift parseable output message (malformed JSON): `{
  "kind": "finished",
` (in target 'HiCoffee' from project 'HiCoffee')

  "name": "compile",
  "pid": -1139,
  "process": {
    "real_pid": 95136
  },
  "exit-status": 0
}
Command SwiftCompile emitted errors but did not return a nonzero exit code to indicate failure

Accepted Reply

Xcode 15 beta 6 fixed the issue.

Replies

Having exactly the same issue

The error occurs on Xcode Cloud and blocks the CI 😔

FB12755741

@Gong Having exactly the same problem. Any news on this?

@Urkman No update and no workaround. I have to create a branch for the CI which using Xcode 15 beta 4...

Same problem here, it happens when I try this in my AppIntent:

   @Parameter(title: "Image")
    var file: IntentFile
error: Invalid Swift parseable output message (malformed JSON): `1` (in target 'IntentTest2' from project 'IntentTest2')
error: Invalid Swift parseable output message (malformed JSON): `{
  "kind": "finished",
` (in target 'IntentTest2' from project 'IntentTest2')
  "name": "compile",
  "pid": 64892,
  "process": {
    "real_pid": 64893
  },
  "exit-status": 0
}
Command SwiftCompile emitted errors but did not return a nonzero exit code to indicate failure

Xcode 15 beta 6 fixed the issue.