Skip to content

Commit d173dab

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix plugin remove if the plugin has Podfile
1 parent b7df627 commit d173dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
578578
private removeCocoapods(pluginPlatformsFolderPath: string): IFuture<void> {
579579
return (() => {
580580
let pluginPodFilePath = path.join(pluginPlatformsFolderPath, "Podfile");
581-
if(this.$fs.exists(pluginPodFilePath).wait()) {
581+
if(this.$fs.exists(pluginPodFilePath).wait() && this.$fs.exists(this.projectPodFilePath).wait()) {
582582
let pluginPodFileContent = this.$fs.readText(pluginPodFilePath).wait();
583583
let projectPodFileContent = this.$fs.readText(this.projectPodFilePath).wait();
584584
let contentToRemove= this.buildPodfileContent(pluginPodFilePath, pluginPodFileContent);

0 commit comments

Comments
 (0)