Я хочу создать реактивный собственный проект Firebase. Но когда я следую инструкциям по настройке https://invertase.io/oss/react-native-firebase/quick-start/new-project и выполняю следующие команды, я не могу устранить некоторые ошибки cocoapod. Я попытался выполнить следующие команды:
npx Reaction-native init --template=@react-native-firebase/template HelloApp
✔ Downloading template ✔ Copying template ✔ Processing template ⠏ Installing CocoaPods dependencies (this may take a few minutes)internal/modules/cjs/loader.js:979 throw err; ^
Error: Cannot find module '/Users/me/Desktop/HelloApp/ios/undefined'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template. Please try again manually: "cd ./HelloApp/ios && pod install". CocoaPods documentation: https://cocoapods.org/
Триелд I для ручной установки кокосового дерева:
cd ./HelloApp/ios && pod install
> > internal/modules/cjs/loader.js:979 throw err; ^
> >
> > Error: Cannot find module '/Users/me/Desktop/HelloApp/ios/undefined'
> > at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15)
> > at Function.Module._load (internal/modules/cjs/loader.js:859:27)
> > at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
> > at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
> >
> > [!] Invalid `Podfile` file: 767: unexpected token at ''.
> >
> > # from /Users/me/Desktop/HelloApp/ios/Podfile:46 #
> > ------------------------------------------- #
> > > use_native_modules! # end # -------------------------------------------
Затем я попытался обновить Cocoapod:
pod install - repo-update
internal/modules/cjs/loader.js:979 throw err; ^
Error: Cannot find module '/Users/me/Desktop/HelloApp/ios/undefined'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:976:15)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
[!] Invalid `Podfile` file: 767: unexpected token at ''.
# from /Users/me/Desktop/HelloApp/ios/Podfile:46 #
------------------------------------------- #
> use_native_modules! # end # -------------------------------------------
Но ни один из них не смог решить ошибку cocoapod. Как правильно установить шаблон firebase?