Skip to content

Commit fcd0eea

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #1036 from NativeScript/fatme/fix-plugin-remove1
Fix plugin remove if the plugin has Podfile
2 parents d241c49 + d173dab commit fcd0eea

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)