Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with iOS auto install #46259

Closed
imdipprokash opened this issue Aug 29, 2024 · 2 comments
Closed

Issue with iOS auto install #46259

imdipprokash opened this issue Aug 29, 2024 · 2 comments
Labels

Comments

@imdipprokash
Copy link

Description

Running: npx @react-native-community/cli init

           ######                ######               
         ###     ####        ####     ###             
        ##          ###    ###          ##            
        ##             ####             ##            
        ##             ####             ##            
        ##           ##    ##           ##            
        ##         ###      ###         ##            
         ##  ########################  ##             
      ######    ###            ###    ######          
  ###     ##    ##              ##    ##     ###      

## ### #### ### ##

#### ######## ####

### ########## ###

#### ######## ####

## ### #### ### ##

  ###     ##    ##              ##    ##     ###      
      ######    ###            ###    ######          
         ##  ########################  ##             
        ##         ###      ###         ##            
        ##           ##    ##           ##            
        ##             ####             ##            
        ##             ####             ##            
        ##          ###    ###          ##            
         ###     ####        ####     ###             
           ######                ######               
                                                      

          Welcome to React Native 0.75.2!                
             Learn once, write anywhere               

✔ Downloading template
✔ Copying template
✔ Processing template
✖ Installing dependencies
error Installing pods failed. This doesn't affect project initialization and you can safely proceed.
However, you will need to install pods manually when running iOS, follow additional steps in "Run instructions for iOS" section.

info 💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field.
For more details, see https://github.com/react-native-community/cli/blob/main/docs/projects.md#projectiosautomaticpodsinstallation

✔ Initializing Git repository

Steps to reproduce

npx @react-native-community/cli init my app

React Native Version

0.75.2

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.6.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 162.63 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.15.0
    path: ~/.nvm/versions/node/v20.15.0/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.15.0/bin/npm
  Watchman:
    version: 2024.08.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "28"
      - "29"
      - "30"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.15989.150.2411.11948838
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 3.2.5
    path: /Users/distronixmacbookpro/.rvm/rubies/ruby-3.2.5/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

✖ Installing dependencies
error Installing pods failed. This doesn't affect project initialization and you can safely proceed.

Reproducer

https://github.com/imdipprokash/map

Screenshots and Videos

No response

@imdipprokash
Copy link
Author

I have fixed this issue by uninstalling yarn . And after this was fixed

@sasweb
Copy link

sasweb commented Sep 2, 2024

@imdipprokash it may be acceptable for you to uninstall yarn but this is definitely not a fix.

I am experiencing the same issue. And I know that other developers on mac and yarn 1.x.x do too.
As far as I can tell npx @react-native-community/cli init upgrades the yarn version to 3.x.x which breaks everything. It's not possible to use yarn after that. Another workaround is to manually downgrade to 1.x.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants