Skip to content

Commit faea170

Browse files
committed
throw error if Gemfile is not found
1 parent 28cf1a4 commit faea170

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cli-platform-ios/src/tools/installPods.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ async function installPods(
131131

132132
if (fs.existsSync('../Gemfile') && !options?.skipBundleInstall) {
133133
await runBundleInstall(loader);
134+
} else if (!fs.existsSync('../Gemfile')) {
135+
throw new CLIError(
136+
'Could not find the Gemfile. Currently the CLI requires to have this file in the root directory of the project to install CocoaPods. If your configuration is different, please install the CocoaPods manually.',
137+
);
134138
}
135139

136140
try {

0 commit comments

Comments
 (0)