reactwg / react-native-releases

React Native Releases Working Group
346 stars 8 forks source link

[0.74] Not able to build React Native iOS App #463

Closed Deep-Jani closed 3 weeks ago

Deep-Jani commented 3 weeks ago

Old Version

0.71.10

New Version

0.74.4

Description

Facing issue when running React-native iOS App in XCode 15 Tried following steps to Still We were not able to succeed.

Steps to reproduce

Note :- Also tried building with fresh project.

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

info Fetching system and libraries information...
System:
    OS: macOS 14.4.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1030NG7 CPU @ 1.10GHz
    Memory: 94.89 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
    Watchman: 2023.05.22.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.14.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 15.3/15E204a - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.74.4 => 0.74.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

NA

Reproducer

https://github.com

Screenshots and Videos

Package.json

{
  "name": "techark_ordersent",
  "version": "0.0.1",
  "private": true,
  "reactNativePermissionsIOS": [
    "Camera",
    "MediaLibrary",
    "LocationWhenInUse",
    "Notifications",
    "PhotoLibrary"
  ],
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest",
    "postinstall": "react-native setup-ios-permissions && cd ios && pod install"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.24.0",
    "@react-native-community/netinfo": "^11.3.2",
    "@react-native-firebase/app": "^20.4.0",
    "@react-native-firebase/crashlytics": "^20.4.0",
    "@react-native-firebase/messaging": "^20.4.0",
    "@react-native-google-signin/google-signin": "^10.1.2",
    "@react-native-picker/picker": "^2.8.0",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/stack": "^6.4.1",
    "@reduxjs/toolkit": "^1.9.7",
    "force": "^0.0.3",
    "react": "18.2.0",
    "react-native": "0.71.10",
    "react-native-calendar-picker": "^7.1.4",
    "react-native-device-info": "^11.1.0",
    "react-native-draggable-flatlist": "^4.0.1",
    "react-native-event-listeners": "^1.0.7",
    "react-native-fbsdk-next": "^6.2.0",
    "react-native-gesture-handler": "^2.19.0",
    "react-native-haptic-feedback": "^2.3.1",
    "react-native-image-crop-picker": "^0.40.3",
    "react-native-indicators": "^0.17.0",
    "react-native-input-scroll-view": "^1.11.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-loading-spinner-overlay": "^3.0.1",
    "react-native-mask-input": "^1.2.3",
    "react-native-modal": "^13.0.1",
    "react-native-paper": "^5.12.5",
    "react-native-permissions": "^3.10.1",
    "react-native-reanimated": "^3.15.1",
    "react-native-safe-area-context": "^3.4.1",
    "react-native-screens": "^3.34.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-swipe-list-view": "^3.2.9",
    "react-native-toast-message": "^2.2.0",
    "react-native-vector-icons": "^10.1.0",
    "react-native-wheel-pick": "^1.2.2",
    "react-redux": "^8.1.3",
    "redux": "^4.2.1",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.3.0",
    "redux-thunk": "^2.4.2",
    "rn-fetch-blob": "^0.12.0",
    "socket.io-client": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.4",
    "@babel/runtime": "^7.25.6",
    "@react-native/babel-preset": "0.74.86",
    "@react-native/eslint-config": "0.74.86",
    "@react-native/metro-config": "0.74.86",
    "@react-native/typescript-config": "0.74.86",
    "@types/react": "^18.3.5",
    "@types/react-test-renderer": "^18.3.0",
    "babel-jest": "^29.7.0",
    "eslint": "^8.57.0",
    "jest": "^29.7.0",
    "prettier": "2.8.8",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

We need help from the community to solve this

cortinico commented 3 weeks ago

Old Version 0.71.10 New Version 0.74.4

If you're having those kinds of issues, consider updating version by version instead of jumping between 3 versions.

Also it's really hard for us to help you without a proper error log

joe-sam commented 3 weeks ago

Try using React Native upgrade helper this shows how to upgrade a sample App between any two versions.