diff --git a/lib/services/cocoapods-service.ts b/lib/services/cocoapods-service.ts index b52dabaf6d..9afedc6aab 100644 --- a/lib/services/cocoapods-service.ts +++ b/lib/services/cocoapods-service.ts @@ -89,6 +89,9 @@ export class CocoaPodsService implements ICocoaPodsService { if (index !== -1) { finalPodfileContent = finalPodfileContent.replace(postInstallHookStart, `${postInstallHookStart}${postInstallHookContent}`); } else { + if (finalPodfileContent.length > 0) { + finalPodfileContent += `${EOL}${EOL}`; + } const postInstallHook = `${postInstallHookStart}${postInstallHookContent}end`; finalPodfileContent = `${finalPodfileContent}${postInstallHook}`; }