cli icon indicating copy to clipboard operation
cli copied to clipboard

cli keep telling me that cocoapods is not installed

Open HaloWang opened this issue 3 years ago • 4 comments

Environment

🌏 All envs:

Last login: Wed May  4 11:48:44 on ttys000
➜  ~ npx react-native doctor                    
⠇ Running diagnostics...
warn We couldn't find a package.json in this directory. Android SDK checks may fail. Doctor works best in a React Native project root.
Common
 ✓ Node.js
 ✓ yarn
 ✓ npm
 ✖ Watchman - Used for watching changes in the filesystem when in development mode
   - Version found: 2022.03.21.00
   - Version supported: 4.x

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✖ Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: Not Found
 ✓ ANDROID_HOME

iOS
 ✓ Xcode - Required for building and installing your app on iOS
 ✓ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI

Errors:   2
Warnings: 1

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.
➜  ~ pod --version
1.11.3
➜  ~ gem info cocoapods

*** LOCAL GEMS ***

cocoapods (1.11.3)
    Authors: Eloy Duran, Fabio Pelosin, Kyle Fuller, Samuel Giddins
    Homepage: https://github.com/CocoaPods/CocoaPods
    License: MIT
    Installed at: /Users/WangCe/.rvm/gems/ruby-2.7.6

    The Cocoa library package manager.
➜  ~ brew list
==> Formulae
autoconf		double-conversion	folly			icu4c			libtool			[email protected]		snappy			zlib
automake		fb303			gdbm			libevent		libyaml			pcre			sqlite			zstd
boost			fbthrift		gflags			libgpg-error		lz4			pkg-config		wangle
ca-certificates		fizz			glog			libksba			m4			[email protected]		watchman
coreutils		fmt			gmp			libsodium		mpdecimal		readline		xz
➜  ~ 

🤔 What react-native-cli said:

Last login: Wed May  4 11:46:37 on ttys000
➜  ~ npx react-native init ProjectName --verbose
debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Initializing new project
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

                  Welcome to React Native!                
                 Learn once, write anywhere               

debug Installing template from react-native@latest
yarn init v1.22.15
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
✨  Done in 0.03s.
yarn add v1.22.15
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-native > [email protected]" has unmet peer dependency "@babel/core@*".
warning "react-native > [email protected]" has unmet peer dependency "react@^16.0.0 || ^17.0.0".
warning "react-native > [email protected]" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > [email protected]" has unmet peer dependency "[email protected]".
[4/4] 🔨  Building fresh packages...

success Saved lockfile.
success Saved 379 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ @ampproject/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @hapi/[email protected]
├─ @jest/[email protected]
├─ @jridgewell/[email protected]
├─ @jridgewell/[email protected]
├─ @jridgewell/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native/[email protected]
├─ @react-native/[email protected]
├─ @react-native/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨  Done in 21.12s.
debug Getting config from /var/folders/gc/2wsry8y94mq9bq44x3s66r580000gn/T/rncli-init-template-KoH3yw/node_modules/react-native/template.config.js
debug Copying template from /var/folders/gc/2wsry8y94mq9bq44x3s66r580000gn/T/rncli-init-template-KoH3yw/node_modules/react-native/template
debug Changing HelloWorld for ProjectName in template
debug Replacing in /Users/WangCe/ProjectName/package.json
debug Replacing in /Users/WangCe/ProjectName/package.json
debug Replacing in /Users/WangCe/ProjectName/metro.config.js
debug Replacing in /Users/WangCe/ProjectName/metro.config.js
debug Replacing in /Users/WangCe/ProjectName/ios/Podfile
debug Replacing in /Users/WangCe/ProjectName/ios/Podfile
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorldTests/HelloWorldTests.m -> file:/Users/WangCe/ProjectName/ios/HelloWorldTests/ProjectNameTests.m
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorldTests -> file:/Users/WangCe/ProjectName/ios/ProjectNameTests
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme -> file:/Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/ProjectName.xcscheme
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/project.pbxproj
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj/project.pbxproj
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld.xcodeproj -> file:/Users/WangCe/ProjectName/ios/ProjectName.xcodeproj
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/main.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/main.m
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Info.plist
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.h
debug Replacing in /Users/WangCe/ProjectName/ios/HelloWorld/AppDelegate.h
debug Renaming /Users/WangCe/ProjectName/ios/HelloWorld -> file:/Users/WangCe/ProjectName/ios/ProjectName
debug Replacing in /Users/WangCe/ProjectName/index.js
debug Replacing in /Users/WangCe/ProjectName/index.js
debug Replacing in /Users/WangCe/ProjectName/babel.config.js
debug Replacing in /Users/WangCe/ProjectName/babel.config.js
debug Replacing in /Users/WangCe/ProjectName/app.json
debug Replacing in /Users/WangCe/ProjectName/app.json
debug Replacing in /Users/WangCe/ProjectName/android/settings.gradle
debug Replacing in /Users/WangCe/ProjectName/android/settings.gradle
debug Replacing in /Users/WangCe/ProjectName/android/gradlew.bat
debug Replacing in /Users/WangCe/ProjectName/android/gradlew.bat
debug Replacing in /Users/WangCe/ProjectName/android/gradlew
debug Replacing in /Users/WangCe/ProjectName/android/gradlew
debug Replacing in /Users/WangCe/ProjectName/android/gradle.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/WangCe/ProjectName/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/WangCe/ProjectName/android/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/Android.mk
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/jni/Android.mk
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainActivity.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld/MainActivity.java
debug Renaming /Users/WangCe/ProjectName/android/app/src/main/java/com/helloworld -> file:/Users/WangCe/ProjectName/android/app/src/main/java/com/projectname
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Renaming /Users/WangCe/ProjectName/android/app/src/debug/java/com/helloworld -> file:/Users/WangCe/ProjectName/android/app/src/debug/java/com/projectname
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/WangCe/ProjectName/android/app/proguard-rules.pro
debug Replacing in /Users/WangCe/ProjectName/android/app/proguard-rules.pro
debug Replacing in /Users/WangCe/ProjectName/android/app/debug.keystore
debug Replacing in /Users/WangCe/ProjectName/android/app/debug.keystore
debug Replacing in /Users/WangCe/ProjectName/android/app/build_defs.bzl
debug Replacing in /Users/WangCe/ProjectName/android/app/build_defs.bzl
debug Replacing in /Users/WangCe/ProjectName/android/app/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/build.gradle
debug Replacing in /Users/WangCe/ProjectName/android/app/_BUCK
debug Replacing in /Users/WangCe/ProjectName/android/app/_BUCK
debug Replacing in /Users/WangCe/ProjectName/_watchmanconfig
debug Replacing in /Users/WangCe/ProjectName/_watchmanconfig
debug Renaming /Users/WangCe/ProjectName/_watchmanconfig -> file:/Users/WangCe/ProjectName/.watchmanconfig
debug Replacing in /Users/WangCe/ProjectName/_ruby-version
debug Replacing in /Users/WangCe/ProjectName/_ruby-version
debug Renaming /Users/WangCe/ProjectName/_ruby-version -> file:/Users/WangCe/ProjectName/.ruby-version
debug Replacing in /Users/WangCe/ProjectName/_prettierrc.js
debug Replacing in /Users/WangCe/ProjectName/_prettierrc.js
debug Renaming /Users/WangCe/ProjectName/_prettierrc.js -> file:/Users/WangCe/ProjectName/.prettierrc.js
debug Replacing in /Users/WangCe/ProjectName/_gitignore
debug Replacing in /Users/WangCe/ProjectName/_gitignore
debug Renaming /Users/WangCe/ProjectName/_gitignore -> file:/Users/WangCe/ProjectName/.gitignore
debug Replacing in /Users/WangCe/ProjectName/_flowconfig
debug Replacing in /Users/WangCe/ProjectName/_flowconfig
debug Renaming /Users/WangCe/ProjectName/_flowconfig -> file:/Users/WangCe/ProjectName/.flowconfig
debug Replacing in /Users/WangCe/ProjectName/_eslintrc.js
debug Replacing in /Users/WangCe/ProjectName/_eslintrc.js
debug Renaming /Users/WangCe/ProjectName/_eslintrc.js -> file:/Users/WangCe/ProjectName/.eslintrc.js
debug Replacing in /Users/WangCe/ProjectName/_bundle/config
debug Replacing in /Users/WangCe/ProjectName/_bundle/config
debug Renaming /Users/WangCe/ProjectName/_bundle/config -> file:/Users/WangCe/ProjectName/_bundle/config
debug Renaming /Users/WangCe/ProjectName/_bundle -> file:/Users/WangCe/ProjectName/.bundle
debug Replacing in /Users/WangCe/ProjectName/_buckconfig
debug Replacing in /Users/WangCe/ProjectName/_buckconfig
debug Renaming /Users/WangCe/ProjectName/_buckconfig -> file:/Users/WangCe/ProjectName/.buckconfig
debug Replacing in /Users/WangCe/ProjectName/__tests__/App-test.js
debug Replacing in /Users/WangCe/ProjectName/__tests__/App-test.js
debug Replacing in /Users/WangCe/ProjectName/Gemfile.lock
debug Replacing in /Users/WangCe/ProjectName/Gemfile.lock
debug Replacing in /Users/WangCe/ProjectName/Gemfile
debug Replacing in /Users/WangCe/ProjectName/Gemfile
debug Replacing in /Users/WangCe/ProjectName/App.js
debug Replacing in /Users/WangCe/ProjectName/App.js
yarn install v1.22.15
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @react-native-community/eslint-config > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning babel-jest > @jest/transform > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 38.99s.
? CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? › - Use arrow-keys. Return to submit.
❯   Yes, with gem (may require sudo)
    Yes, with Homebrew

Description

Just keep telling me that cocoapods is not installed:

CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? › - Use arrow-keys. Return to submit.
❯   Yes, with gem (may require sudo)
    Yes, with Homebrew

Reproducible Demo

macOS, macOS only.

npx react-native init ProjectName --verbose

HaloWang avatar May 04 '22 03:05 HaloWang

 ✖ Watchman - Used for watching changes in the filesystem when in development mode
   - Version found: 2022.03.21.00
   - Version supported: 4.x

I think this message in doctor command also need to be upgraded

HaloWang avatar May 04 '22 03:05 HaloWang

~~Maybe we should check cocoapods installation in react-native doctor rather than project initialization?~~

Oops, even worse, doctor said cocopods is installed 🫠

HaloWang avatar May 04 '22 04:05 HaloWang

having same issue. possibly related to https://github.com/react-native-community/cli/issues/1649

heyalexchoi avatar Jul 13 '22 15:07 heyalexchoi

➜  Project-ios git:(master) ✗ npx react-native init ProjectMobile --verbose
debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Initializing new project
                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          

                  Welcome to React Native!                
                 Learn once, write anywhere               

debug Installing template from react-native@latest
yarn init v1.13.0
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
success Saved package.json
✨  Done in 0.01s.
yarn add v1.13.0
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-native > [email protected]" has unmet peer dependency "@babel/core@*".
warning "react-native > [email protected]" has unmet peer dependency "react@^16.0.0 || ^17.0.0".
warning "react-native > [email protected]" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > [email protected]" has unmet peer dependency "[email protected]".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.22.19", while you're on "1.13.0".
info To upgrade, run the following command:
$ brew upgrade yarn
success Saved 374 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ @ampproject/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @babel/[email protected]
├─ @hapi/[email protected]
├─ @jest/[email protected]
├─ @jridgewell/[email protected]
├─ @jridgewell/[email protected]
├─ @jridgewell/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native/[email protected]
├─ @react-native/[email protected]
├─ @react-native/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @sideway/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨  Done in 11.63s.
debug Getting config from /var/folders/h5/1tk8s__n2cv85msg3gzzp4cr0000gn/T/rncli-init-template-LVCpIz/node_modules/react-native/template.config.js
debug Copying template from /var/folders/h5/1tk8s__n2cv85msg3gzzp4cr0000gn/T/rncli-init-template-LVCpIz/node_modules/react-native/template
debug Changing HelloWorld for ProjectMobile in template
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/package.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/package.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/metro.config.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/metro.config.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/_xcode.env
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/_xcode.env
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/_xcode.env -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/.xcode.env
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/Podfile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/Podfile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/Info.plist
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/HelloWorldTests.m
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/HelloWorldTests.m
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/HelloWorldTests.m -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests/ProjectMobileTests.m
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorldTests -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/ProjectMobileTests
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/HelloWorld.xcscheme -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/xcshareddata/xcschemes/ProjectMobile.xcscheme
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/project.pbxproj
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj/project.pbxproj
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld.xcodeproj -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/ProjectMobile.xcodeproj
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/main.m
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/main.m
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/LaunchScreen.storyboard
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Info.plist
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Info.plist
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Images.xcassets/Contents.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/AppDelegate.mm
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/AppDelegate.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld/AppDelegate.h
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/ios/HelloWorld -> file:/Users/alexchoi/Project-ios/ProjectMobile/ios/ProjectMobile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/index.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/index.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/babel.config.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/babel.config.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/app.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/app.json
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/settings.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/settings.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradlew.bat
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradlew.bat
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradlew
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradlew
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle.properties
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle.properties
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle/wrapper/gradle-wrapper.properties
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/gradle/wrapper/gradle-wrapper.jar
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/build.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/build.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/values/styles.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/values/strings.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/res/drawable/rn_edit_text_material.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/OnLoad.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainComponentsRegistry.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainComponentsRegistry.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationModuleProvider.h
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/MainApplicationModuleProvider.cpp
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/Android.mk
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/jni/Android.mk
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/components/MainComponentsRegistry.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/newarchitecture/MainApplicationReactNativeHost.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/MainApplication.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/MainActivity.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld/MainActivity.java
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/helloworld -> file:/Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/java/com/Projectmobile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/main/AndroidManifest.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/java/com/helloworld -> file:/Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/java/com/Projectmobile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/src/debug/AndroidManifest.xml
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/proguard-rules.pro
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/proguard-rules.pro
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/debug.keystore
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/debug.keystore
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/build_defs.bzl
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/build_defs.bzl
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/build.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/build.gradle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/_BUCK
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/android/app/_BUCK
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_watchmanconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_watchmanconfig
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_watchmanconfig -> file:/Users/alexchoi/Project-ios/ProjectMobile/.watchmanconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_ruby-version
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_ruby-version
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_ruby-version -> file:/Users/alexchoi/Project-ios/ProjectMobile/.ruby-version
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_prettierrc.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_prettierrc.js
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_prettierrc.js -> file:/Users/alexchoi/Project-ios/ProjectMobile/.prettierrc.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_gitignore
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_gitignore
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_gitignore -> file:/Users/alexchoi/Project-ios/ProjectMobile/.gitignore
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_flowconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_flowconfig
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_flowconfig -> file:/Users/alexchoi/Project-ios/ProjectMobile/.flowconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_eslintrc.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_eslintrc.js
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_eslintrc.js -> file:/Users/alexchoi/Project-ios/ProjectMobile/.eslintrc.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_bundle/config
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_bundle/config
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_bundle/config -> file:/Users/alexchoi/Project-ios/ProjectMobile/_bundle/config
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_bundle -> file:/Users/alexchoi/Project-ios/ProjectMobile/.bundle
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_buckconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/_buckconfig
debug Renaming /Users/alexchoi/Project-ios/ProjectMobile/_buckconfig -> file:/Users/alexchoi/Project-ios/ProjectMobile/.buckconfig
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/__tests__/App-test.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/__tests__/App-test.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/Gemfile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/Gemfile
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/App.js
debug Replacing in /Users/alexchoi/Project-ios/ProjectMobile/App.js
yarn install v1.13.0
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @react-native-community/eslint-config > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
info There appears to be trouble with your network connection. Retrying...
warning babel-jest > @jest/transform > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-native > [email protected]" has incorrect peer dependency "react@^16.0.0 || ^17.0.0".
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 51.78s.
✔ CocoaPods (https://cocoapods.org/) is not installed. CocoaPods is necessary for the iOS project to run correctly. Do you want to install it? › Yes, with gem (may require sudo)
error 
error Error: An error occured while trying to install CocoaPods, which is required by this template.
Please try again manually: sudo gem install cocoapods.
CocoaPods documentation: https://cocoapods.org/
➜  Project-ios git:(master) ✗ npx react-native doctor
Common
 ✓ Node.js
 ✓ yarn
 ✓ Watchman - Used for watching changes in the filesystem when in development mode

Android
 ✓ JDK
 ✓ Android Studio - Required for building and installing your app on Android
 ✖ Android SDK - Required for building and installing your app on Android
   - Versions found: N/A
   - Version supported: 31.0.0
 ✖ ANDROID_HOME

iOS
 ✓ Xcode - Required for building and installing your app on iOS
 ✓ CocoaPods - Required for installing iOS dependencies
 ● ios-deploy - Required for installing your app on a physical device with the CLI
 ✓ .xcode.env - File to customize Xcode environment

Errors:   2
Warnings: 1

Usage
 › Press f to try to fix issues.
 › Press e to try to fix errors.
 › Press w to try to fix warnings.
 › Press Enter to exit.
➜  Project-ios git:(master) ✗ gem info cocoapods

*** LOCAL GEMS ***

cocoapods (1.11.3, 1.11.2)
    Authors: Eloy Duran, Fabio Pelosin, Kyle Fuller, Samuel Giddins
    Homepage: https://github.com/CocoaPods/CocoaPods
    License: MIT
    Installed at (1.11.3): /Users/alexchoi/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0
                 (1.11.2): /Users/alexchoi/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0

    The Cocoa library package manager.
➜  Project-ios git:(master) ✗ pod --version
1.11.3

M1 Mac

heyalexchoi avatar Jul 13 '22 15:07 heyalexchoi

There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.

github-actions[bot] avatar Nov 25 '22 03:11 github-actions[bot]

Hi. As for now, recommended way to install Cocoapods is with bundler. There have been also some improvements merged into CLI that should address the issues you were facing. I'll close the issue for now, please check if this is still valid and if so I'm happy to reopen :)

adamTrz avatar Nov 25 '22 09:11 adamTrz

thank you for your reply. i will take a look at this problem when i back to RN dev

On Fri, Nov 25, 2022, 5:50 PM Adam Trzciński @.***> wrote:

Hi. As for now, recommended way to install Cocoapods is with bundler. There have been also some improvements merged into CLI that should address the issues you were facing. I'll close the issue for now, please check if this is still valid and if so I'm happy to reopen :)

— Reply to this email directly, view it on GitHub https://github.com/react-native-community/cli/issues/1602#issuecomment-1327241288, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBEVFFIOWMQYPMFOAOR4TWKCDVZANCNFSM5VAXRR7A . You are receiving this because you authored the thread.Message ID: @.***>

HaloWang avatar Nov 26 '22 13:11 HaloWang