We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1a8f90 + 1acc45e commit ccfce12Copy full SHA for ccfce12
lib/services/cocoapods-service.ts
@@ -89,6 +89,9 @@ export class CocoaPodsService implements ICocoaPodsService {
89
if (index !== -1) {
90
finalPodfileContent = finalPodfileContent.replace(postInstallHookStart, `${postInstallHookStart}${postInstallHookContent}`);
91
} else {
92
+ if (finalPodfileContent.length > 0) {
93
+ finalPodfileContent += `${EOL}${EOL}`;
94
+ }
95
const postInstallHook = `${postInstallHookStart}${postInstallHookContent}end`;
96
finalPodfileContent = `${finalPodfileContent}${postInstallHook}`;
97
}
0 commit comments