We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1012c commit f7bb50bCopy full SHA for f7bb50b
config/cmd.py
@@ -119,6 +119,11 @@ def get_workspace():
119
cmd = f"xcodebuild -list -json {cmd_target}"
120
print("run: ", cmd)
121
output = subprocess.check_output(cmd, shell=True, universal_newlines=True)
122
+ if output[0] != "{":
123
+ # https://github.com/swiftlang/swift-package-manager/blob/f19d08cf79250514851490599319d22771074b01/Sources/PackageLoading/TargetSourcesBuilder.swift#L194
124
+ # SPM print error message to stdout, skip it
125
+ start = output.find("{")
126
+ output = output[start:]
127
output = json.loads(output)
128
if use_project:
129
scheme = output["project"]["schemes"][0]
0 commit comments