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 iOS App Crash- After Upgrade to 0.76.1 #47587

Open
Ajithkumar2203 opened this issue Nov 13, 2024 · 7 comments
Open

React native iOS App Crash- After Upgrade to 0.76.1 #47587

Ajithkumar2203 opened this issue Nov 13, 2024 · 7 comments
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Platform: iOS iOS applications.

Comments

@Ajithkumar2203
Copy link

Ajithkumar2203 commented Nov 13, 2024

Description

I had 2 issues

Build got crashed after the splash screen in testflight (Release version)
"react-native": "^0.75.1"
Xcode Version 16.0
Mac os version 15.1

After upgrade build got crashed in debug mode also cant able to run my app
"react-native": "^0.76.1"
Xcode Version 16.0
Mac os version 15.1

Initially i thought it was because of splash screen i removed that also facing the same crash i dont know why

but when i installed the previous version "react-native": "0.70.6", it is working fine in the dev and release version

Note i updated almost all the package to most recent version is anything releated to
architechture something

Here is my package json

"dependencies": {
"@dynatrace/react-native-plugin": "^2.301.1",
"@react-native-async-storage/async-storage": "^2.0.0",
"@react-native-community/checkbox": "^0.5.17",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-community/progress-bar-android": "^1.0.5",
"@react-native-masked-view/masked-view": "^0.3.2",
"@react-native-picker/picker": "^2.9.0",
"@react-navigation/drawer": "^7.0.1",
"@react-navigation/native": "^7.0.0",
"@react-navigation/stack": "^7.0.0",
"@realm/react": "^0.11.0",
"hermes-engine": "^0.11.0",
"i18next": "^23.16.5",
"lodash": "^4.17.21",
"matomo-tracker-react-native": "^0.3.2",
"moment": "^2.30.1",
"papaparse": "^5.4.1",
"prop-types": "^15.8.1",
"react": "18.3.1",
"react-i18next": "^15.1.1",
"react-native": "0.76.1",
"react-native-app-auth": "^8.0.0",
"react-native-blob-util": "^0.19.11",
"react-native-date-picker": "^5.0.7",
"react-native-device-info": "^14.0.0",
"react-native-document-picker": "^9.3.1",
"react-native-dropdown-picker": "^5.4.6",
"react-native-elements": "^3.4.3",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.20.2",
"react-native-image-crop-picker": "^0.41.4",
"react-native-image-picker": "^7.1.2",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-linear-gradient": "^2.8.3",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-localize": "^3.3.0",
"react-native-mail": "^6.1.1",
"react-native-network-bandwith-speed": "^3.0.0",
"react-native-paper": "^5.12.5",
"react-native-pdf": "^6.7.5",
"react-native-reanimated": "^3.16.1",
"react-native-safe-area-context": "^4.14.0",
"react-native-screens": "^4.0.0",
"react-native-sensitive-info": "^5.5.8",
"react-native-spinkit": "^1.5.1",
"react-native-svg": "^15.8.0",
"react-native-toast-message": "^2.2.1",
"react-native-vector-icons": "^10.2.0",
"react-redux": "^9.1.2",
"realm": "^20.0.0",
"redux": "^5.0.1",
"redux-observable": "^3.0.0-rc.2",
"redux-thunk": "^3.1.0",
"reselect": "^5.1.1",
"rxjs": "^7.8.1",
"save-dev": "^0.0.1-security"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.9",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.26.0",
"@react-native-community/cli": "^15.1.2",
"@react-native-community/cli-platform-android": "15.1.2",
"@react-native-community/cli-platform-ios": "15.1.2",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/babel-preset": "0.76.0",
"@react-native/eslint-config": "0.76.0",
"@react-native/metro-config": "0.76.0",
"@react-native/typescript-config": "0.76.0",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "12.8.1",
"@types/react": "^18.3.12",
"@types/react-test-renderer": "^18.3.0",
"babel-jest": "^29.7.0",
"detox": "^20.27.6",
"eslint": "^9.14.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"metro-config": "^0.81.0",
"prettier": "3.3.3",
"react-test-renderer": "18.3.1",
"reactotron-react-native": "^5.1.9",
"reactotron-redux": "^3.1.10",
"redux-mock-store": "^1.5.5",
"typescript": "5.6.3"
},
"jest": {
"preset": "react-native",
"timers": "fake",
"testEnvironment": "jsdom",
"moduleNameMapper": {
".+\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
},
"setupFiles": [
"/jest/Setup.js"
],
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?@react-native|react-native|@react-native-community|@react-native-picker|react-native-vector-icons|react-icons|react-native-toggle-element|@dynatrace/react-native-plugin|matomo-tracker-react-native)"
],
"transform": {}
},
"detox": {
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"devices": {
"simulator": {
"type": "ios.simulator",
"device": {
"id": "92749BE8-811E-4339-B1C9-C4DC51B16861"
}
}
},
"apps": {
"ios.debug": {
"type": "ios.app",
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/mobilecheck.app",
"build": "xcodebuild -workspace ios/mobilecheck.xcworkspace -configuration Debug -sdk iphonesimulator14.2 -scheme mobilecheck -derivedDataPath ios/build",
"name": "mobilecheck"
}
},
"configurations": {
"ios": {
"device": "simulator",
"app": "ios.debug",
"behavior": {
"reinstallApp": "false"
}
}
}
}

Here is my Pod file

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '14.0'
install! 'cocoapods', :deterministic_uuids => false

Flags change depending on the env values.

flags = get_default_flags()

target 'mobilecheck' do
config = use_native_modules!

use_react_native!(:path => config[:reactNativePath])

use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => FlipperConfiguration.enabled,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

pod 'react-native-dynatrace', :

Steps to reproduce

I did all possible ways
deleted node modules package.lock json
podfile and pod.lock json
and reinstalled again

React Native Version

0.76.0

Output of npx react-native info

System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 105.08 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.4.1
    path: ~/.nvm/versions/node/v22.4.1/bin/node
  Yarn: Not Found
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v22.4.1/bin/npm
  Watchman:
    version: 2024.10.28.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10671973
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: ^15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.0
    wanted: 0.76.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: true

Screenshots and Videos

No response

@Ajithkumar2203 Ajithkumar2203 added Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Triage 🔍 labels Nov 13, 2024
@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available labels Nov 13, 2024
@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.1. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Nov 13, 2024
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@Ajithkumar2203
Copy link
Author

updated correctly please check and guide me to work properly

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Nov 13, 2024
@maxckelly
Copy link

Have you found a solution for this? I'm getting the below as well.

Screenshot 2024-11-14 at 12 03 56 pm

@Ajithkumar2203
Copy link
Author

@maxckelly no still im facing an issue have u fixed

@maxckelly
Copy link

@Ajithkumar2203 - Nope haven't fixed as well. Whats our dependencies? I've been looking to see if its a lib causing this but unsure. Maybe if we compare we could find a common dependency. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests

3 participants