Skip to content

Commit 48a552e

Browse files
committed
fix: Add base podfile to project's one when no plugins added
1 parent 60b1366 commit 48a552e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-project-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,8 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
986986

987987
public async installPodsIfAny(projectData: IProjectData): Promise<void> {
988988
const projectRoot = this.getPlatformData(projectData).projectRoot;
989-
if (this.$fs.exists(this.$cocoapodsService.getProjectPodfilePath(projectRoot))) {
989+
const mainPodfilePath = path.join(projectData.appResourcesDirectoryPath, this.getPlatformData(projectData).normalizedPlatformName, constants.PODFILE_NAME);
990+
if (this.$fs.exists(this.$cocoapodsService.getProjectPodfilePath(projectRoot)) || this.$fs.exists(mainPodfilePath)) {
990991
const xcodeProjPath = this.getXcodeprojPath(projectData);
991992
const xcuserDataPath = path.join(xcodeProjPath, "xcuserdata");
992993
const sharedDataPath = path.join(xcodeProjPath, "xcshareddata");
@@ -999,7 +1000,6 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
9991000
await this.$childProcess.exec(createSchemeRubyScript, { cwd: this.getPlatformData(projectData).projectRoot });
10001001
}
10011002

1002-
const mainPodfilePath = path.join(projectData.appResourcesDirectoryPath, this.getPlatformData(projectData).normalizedPlatformName, constants.PODFILE_NAME);
10031003
await this.$cocoapodsService.applyPodfileToProject(constants.NS_BASE_PODFILE, mainPodfilePath, projectData, this.getPlatformData(projectData).projectRoot);
10041004

10051005
await this.$cocoapodsService.executePodInstall(projectRoot, xcodeProjPath);

0 commit comments

Comments
 (0)