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

React Native requires XCode >= 14.3. Found 14.2 #44384

Closed
shahjahanpak opened this issue May 2, 2024 · 10 comments
Closed

React Native requires XCode >= 14.3. Found 14.2 #44384

shahjahanpak opened this issue May 2, 2024 · 10 comments
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@shahjahanpak
Copy link

shahjahanpak commented May 2, 2024

Description

Initialising a new project and running pod install throws this error

React Native requires XCode >= 14.3. Found 14.2.

[!] Invalid `Podfile` file: Please upgrade XCode.

 #  from project/ios/Podfile:20
 #  -------------------------------------------
 #  
 >    use_react_native!(
 #      :path => config[:reactNativePath],
 #  -------------------------------------------

Steps to reproduce

  1. npx react-native@latest init AwesomeProject
  2. cd AwesomeProject/ios
  3. pod install

React Native Version

0.74.0

Affected Platforms

Runtime - Android, Runtime - iOS

Areas

Bridgeless - The New Initialization Flow

Output of npx react-native info

System:
  OS: macOS 12.7.4
  CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
  Memory: 152.50 MB / 16.00 GB
  Shell:
    version: 5.8.1
    path: /bin/zsh
Binaries:
  Node:
    version: 20.11.1
    path: ~/.nvm/versions/node/v20.11.1/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.yarn/bin/yarn
  npm:
    version: 10.2.4
    path: ~/.nvm/versions/node/v20.11.1/bin/npm
  Watchman:
    version: 2024.03.18.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.2
      - iOS 16.2
      - macOS 13.1
      - tvOS 16.1
      - watchOS 9.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11330709
  Xcode:
    version: 14.2/14C18
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/mac/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.0
    wanted: 0.74.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

$ /Users/mac/.nvm/versions/node/v20.11.1/bin/node -p require.resolve(     "react-native/scripts/react_native_pods.rb",     {paths: [process.argv[1]]},   )
  /Users/mac/Desktop/projects/AwesomeProject/ios
  /Users/mac/Desktop/projects/AwesomeProject/node_modules/react-native/scripts/react_native_pods.rb
  $ /Users/mac/.nvm/versions/node/v20.11.1/bin/node -p require.resolve(     "@react-native-community/cli-platform-ios/native_modules.rb",     {paths:
  [process.argv[1]]},   ) /Users/mac/Desktop/projects/AwesomeProject/node_modules/react-native/scripts
  /Users/mac/Desktop/projects/AwesomeProject/node_modules/@react-native-community/cli-platform-ios/native_modules.rb
  $ /Users/mac/.nvm/versions/node/v20.11.1/bin/node -e try {console.log(require('@react-native-community/cli').bin);} catch (e)
  {console.log(require('react-native/cli').bin);}
  /Users/mac/Desktop/projects/AwesomeProject/node_modules/@react-native-community/cli/build/bin.js
React Native requires XCode >= 14.3. Found 14.2.

[!] Invalid `Podfile` file: Please upgrade XCode.

 #  from /Users/mac/Desktop/projects/AwesomeProject/ios/Podfile:20
 #  -------------------------------------------
 #  
 >    use_react_native!(
 #      :path => config[:reactNativePath],
 #  -------------------------------------------

/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:335:in `rescue in block in from_ruby'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:329:in `block in from_ruby'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `initialize'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `new'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `from_ruby'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:293:in `from_file'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `load'
/usr/local/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `<main>'

Reproducer

https://github.com/shahjahanpak/AwesomeProject

Screenshots and Videos

Screenshot 2024-05-02 at 11 43 17 AM
@shahjahanpak shahjahanpak added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels May 2, 2024
Copy link

github-actions bot commented May 2, 2024

⚠️ Add or Reformat Version Info
ℹ️ We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.70.2

@cortinico
Copy link
Contributor

React Native requires XCode >= 14.3. Found 14.2.

The error is self explanatory: you need to update XCode version.
Please update XCode version and get back to use if the issue persists

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Author Feedback Needs: Version Info labels May 2, 2024
@HunnySajid
Copy link

HunnySajid commented May 4, 2024

React Native requires XCode >= 14.3. Found 14.2.

The error is self explanatory: you need to update XCode version. Please update XCode version and get back to use if the issue persists

The problem is xcode 14.3 requires MacOS 13.3, my current macbook (MacBook Pro (Retina, 15-inch, Mid 2015)) only offers an update to MacOS 12.7.4.
Is there a way I can run react-native without making these updates?
Maybe downgrading the react-native to a specific version...

@DanTol-cloud
Copy link

The same issue exactly is there any solution for this?

React Native requires XCode >= 14.3. Found 14.2.

The error is self explanatory: you need to update XCode version. Please update XCode version and get back to use if the issue persists

The problem is xcode 14.3 requires MacOS 13.3, my current macbook (MacBook Pro (Retina, 15-inch, Mid 2015)) only offers an update to MacOS 12.7.4. Is there a way I can run react-native without making these updates? Maybe downgrading the react-native to a specific version...

The same issue exactly. Is there a solution?

@cortinico
Copy link
Contributor

Nope sorry. Those limitations are imposed by Apple and outside our control

@mustafaerken
Copy link

I have same issue:

Device: MacBook Pro (Retina, 15-inch, Mid 2015).
macOS: 12.7.4 (Monterey).
xCode: 14.2 (This is the last version for my MacBook Pro 2015.).
ReactNative: I tried 0.71.7 and 0.74.1

There is a problem when we open projects or pod install.

@mustafaerken
Copy link

I fixed my problem with making new project with;

npx react-native init App01 --version 0.71.7

I hope this helps.

@HunnySajid
Copy link

I fixed my problem with making new project with;

npx react-native init App01 --version 0.71.7

I hope this helps.

It also worked for me once I downgraded react-native to 0.71.7
Thank you

@Rajavicky07
Copy link

Rajavicky07 commented May 7, 2024

I fixed my problem with making new project with;

npx react-native init App01 --version 0.71.7

I hope this helps.

how to show this issue my xcode version 14.1 i couldn't install 14.3 xcode version is helps
npx react-native init App01 --version 0.71.7 ?

@mustafaerken
Copy link

mustafaerken commented May 7, 2024

I fixed my problem with making new project with;
npx react-native init App01 --version 0.71.7
I hope this helps.

how to show this issue my xcode version 14.1 i couldn't install 14.3 xcode version is helps npx react-native init App01 --version 0.71.7 ?

We couldn't install xCode 14.3 so this helped us.
It should help you if you have similar problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

6 participants