Skip to content

Commit dcec0ab

Browse files
bs-ondemsschuberth
authored andcommitted
fix(cocoapods): Add --silent to pod ipc spec to ensure valid JSON
Use the `--silent` flag with `pod ipc spec` to suppress warnings or status messages. Without this flag, the command output can include additional text alongside the JSON, making it invalid and unparseable. Signed-off-by: Onur Demirci <[email protected]>
1 parent b401faa commit dcec0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/package-managers/cocoapods/src/main/kotlin/PodDependencyHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ internal class PodDependencyHandler : DependencyHandler<Lockfile.Pod> {
139139

140140
return runCatching {
141141
// Convert the Ruby podspec file to JSON.
142-
CocoaPodsCommand.run(parentFile, "ipc", "spec", patchedPodspecFile.absolutePath)
142+
CocoaPodsCommand.run(parentFile, "ipc", "spec", "--silent", patchedPodspecFile.absolutePath)
143143
.requireSuccess()
144144
.stdout
145145
}.onFailure { e ->

0 commit comments

Comments
 (0)