Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法为iOS项目安装CocoaPods依赖项_Ios_Firebase_React Native_Cocoapods - Fatal编程技术网

无法为iOS项目安装CocoaPods依赖项

无法为iOS项目安装CocoaPods依赖项,ios,firebase,react-native,cocoapods,Ios,Firebase,React Native,Cocoapods,我想创建一个react本机firebase项目。但是,当我按照中的设置说明运行以下命令时,我无法解决某些cocoapod错误。我尝试运行以下命令: npx react native init--template=@react native firebase/template HelloApp 我尝试手动安装cocoapod deps: cd./HelloApp/ios和pod安装 然后我尝试更新Cocoapod: pod安装--repo更新 但是没有一个能够解决cocoapod错误。如何才能正确

我想创建一个react本机firebase项目。但是,当我按照中的设置说明运行以下命令时,我无法解决某些cocoapod错误。我尝试运行以下命令:

npx react native init--template=@react native firebase/template HelloApp

我尝试手动安装cocoapod deps:

cd./HelloApp/ios和pod安装

然后我尝试更新Cocoapod:

pod安装--repo更新


但是没有一个能够解决cocoapod错误。如何才能正确安装firebase模板?

您是否设法使其正常工作?我也面临着确切的问题
✔ 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/
> > 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  #  -------------------------------------------
 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  #  -------------------------------------------