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 86c6629 commit 75a2630Copy full SHA for 75a2630
packages/platform-apple-helpers/src/lib/utils/pods.ts
@@ -147,8 +147,13 @@ async function runPodInstall(options: {
147
});
148
} catch (error) {
149
loader.stop('Failed: Installing CocoaPods dependencies', 1);
150
+ const stderr = (error as SubprocessError).stderr;
151
const fullOutput = (error as SubprocessError).output;
- let errorMessage = fullOutput;
152
+ let errorMessage = stderr;
153
+ /**
154
+ * CocoaPods occasionally provides a markdown template with error message.
155
+ * We don't need the part above the Error secion.
156
+ */
157
if (fullOutput.includes('### Error')) {
158
errorMessage = fullOutput.split('### Error')[1].trim();
159
}
0 commit comments