Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 3541be2

Browse files
Added installing cocoapods to script for creating apps (#1955)
1 parent ba93fac commit 3541be2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Examples/create-app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ try {
4141
process.exit();
4242
}
4343

44+
if (!isReactNativeVersionLowerThan(60) && process.platform === "darwin") {
45+
try {
46+
console.log("Verify that CocoaPods installed");
47+
execCommand("pod --version");
48+
console.log("CocoaPods has installed");
49+
} catch {
50+
console.error(`'CocoaPods' are required to run the script, you can install it with\n'sudo gem install cocoapods'\ncommand
51+
`);
52+
process.exit();
53+
}
54+
}
55+
4456
const appNameAndroid = `${appName}-android`;
4557
const appNameIOS = `${appName}-ios`;
4658
let owner = null;

0 commit comments

Comments
 (0)