facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.26k stars 24.34k forks source link

After updating from RN 0.69.9 to 0.70.15 and having a successful build, I can not run an IOS app. I have no errors it just closes. #43122

Closed GeorgeTsendra closed 8 months ago

GeorgeTsendra commented 8 months ago

Description

I have updated the project from RN 0.69.9 to 0.70.15, in android everything is okay, iOS builds successfully but it closes immediately.

I have added a hermes to the xcode > build phases > Link binary with Libraries and it has no helped me.

this is my package.json

{
  "private": true,
  "name": "______",
  "homepage": "______",
  "description": "____",
  "version": "1.0.0",
  "scripts": {
    "start_localhost": "npm run start",
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "test": "jest --watchAll",
    "buildAndroid": "fastlane android beta",
    "buildIos": "fastlane ios beta"
  },
  "engines": {
    "node": ">=18"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@draftbit/maps": "~46.11.0",
    "@draftbit/ui": "46.9.2",
    "@expo/dev-server": "0.1.120",
    "@expo/vector-icons": "^13.0.0",
    "@expo/webpack-config": "^0.17.0",
    "@mediapipe/pose": "^0.5.1675469404",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-community/datetimepicker": "6.5.2",
    "@react-native-community/netinfo": "9.3.5",
    "@react-native-community/slider": "4.2.3",
    "@react-native-firebase/analytics": "^18.7.3",
    "@react-native-firebase/app": "^18.7.3",
    "@react-native-firebase/crashlytics": "^18.7.3",
    "@react-native-firebase/messaging": "^18.7.3",
    "@react-navigation/bottom-tabs": "6.5.12",
    "@react-navigation/drawer": "6.6.7",
    "@react-navigation/native": "6.1.10",
    "@react-navigation/stack": "6.3.21",
    "@shopify/flash-list": "1.3.1",
    "@shopify/mime-types": "^2.1.0",
    "expo": "47.0.10",
    "expo-asset": "~8.7.0",
    "expo-auth-session": "~3.8.0",
    "expo-av": "~12.0.4",
    "expo-blur": "~12.0.1",
    "expo-camera": "~12.5.0",
    "expo-constants": "~14.0.2",
    "expo-crypto": "~12.0.0",
    "expo-device": "5.0.0",
    "expo-document-picker": "~11.0.1",
    "expo-file-system": "~15.1.1",
    "expo-font": "~11.0.1",
    "expo-gl": "~12.0.1",
    "expo-image-picker": "~14.0.2",
    "expo-linear-gradient": "~12.0.1",
    "expo-linking": "~3.3.1",
    "expo-location": "~15.0.1",
    "expo-media-library": "~15.0.0",
    "expo-modules-core": "1.1.1",
    "expo-notifications": "~0.17.0",
    "expo-permissions": "~14.0.0",
    "expo-print": "~12.0.0",
    "expo-random": "~13.0.0",
    "expo-screen-orientation": "~5.0.1",
    "expo-sharing": "~11.0.1",
    "expo-splash-screen": "~0.17.5",
    "expo-status-bar": "~1.4.0",
    "expo-web-browser": "~12.0.0",
    "pdf-lib": "^1.17.1",
    "plotly.js": "2.14.0",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-fetch-hook": "1.9.5",
    "react-native": "0.70.15",
    "react-native-auth0": "2.17.4",
    "react-native-dropdown-picker": "5.4.6",
    "react-native-fs": "2.20.0",
    "react-native-gesture-handler": "2.15.0",
    "react-native-keyboard-aware-scroll-view": "0.9.5",
    "react-native-maps": "1.3.2",
    "react-native-plotly": "6.0.0",
    "react-native-root-toast": "^3.5.1",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-svg": "12.3.0",
    "react-native-typography": "1.4.1",
    "react-native-view-shot": "3.4.0",
    "react-native-web": "~0.18.9",
    "react-native-web-swiper": "^2.2.3",
    "react-native-webview": "11.23.0",
    "react-plotly.js": "2.6.0",
    "react-query": "3.39.3",
    "react-request": "^3.2.0",
    "victory": "^36.9.1",
    "victory-native": "^36.9.1",
    "metro-react-native-babel-preset": "0.72.4"
  },
  "resolutions": {
    "react-native-web": "0.18.7"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-proposal-numeric-separator": "^7.18.6"
  }
}

Steps to reproduce

1 install node modules (yarn) 2 install pods (pod install) 3 start localhost (yarn start => expo start --dev-client) 4 build ios by Xcode

React Native Version

0.70.15

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
    OS: macOS 14.3.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 8.18 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.10.0/bin/npm
    Watchman: 2023.11.20.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.14.3 - /Users/george/.rvm/rubies/ruby-3.1.0/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.11090377
    Xcode: 15.2/15C500b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.21 - /opt/homebrew/opt/openjdk@11/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.15 => 0.70.15 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

I have no any errors

Reproducer

/

Screenshots and Videos

it looks like in the video from this issue (https://github.com/facebook/react-native/issues/34608).

github-actions[bot] commented 8 months ago
:warning: Unsupported Version of React Native
:information_source: It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.
github-actions[bot] commented 8 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
cortinico commented 8 months ago

We can't help without a reproducer sadly. You're also on a unsupported version of React Native

github-actions[bot] commented 8 months ago
:warning: Issue is a Question
:information_source: We are using GitHub issues exclusively to track bugs in the core React Native library. Please try asking over on Stack Overflow as it is better suited for this type of question.