We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c38cca1 commit 1acc45eCopy full SHA for 1acc45e
lib/services/cocoapods-service.ts
@@ -89,8 +89,11 @@ 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`;
- finalPodfileContent = `${finalPodfileContent}${EOL}${EOL}${postInstallHook}`;
96
+ finalPodfileContent = `${finalPodfileContent}${postInstallHook}`;
97
}
98
99
0 commit comments