-
Notifications
You must be signed in to change notification settings - Fork 24k
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
iOS fails to run on version 0.72.1, 'react/debug/react_native_assert.h' file not found on RunLoopObserver.cpp (React-utils) #38283
Comments
This looks similar to this reported issue: #38140 (comment), can you read that thread if that's useful to unblock yourself. |
I've read that threat but that issue is for version |
@blakef even after applying the patch react-native@0.72.1.patch
|
Did you rerun |
@blakef yes i did, i also tried to remove all pods and cache to do a clean
|
any solution for this problem? |
+1 |
I am also facing the same issue |
Also seeing the same issue |
I am also facing the same issue |
Any fix? Also struggling with it. |
you can see here and you can type npx react-native doctor |
@maksibajo4 Did you manage to fix this issue? |
+1 LE: Fixed by using software-mansion/react-native-svg#2081 (comment)
|
+1 |
@blakef I found that the patches mentioned in the thread above have already been included in RN 0.72.4. But with RN 0.72.4 I still have this issue. |
Is there anyone who can solve? I've been stuck there for a while :( |
I was able to fix the issue with this: |
For those who still has this problem, you can temporary get rid of it by pointing out to those headers manually by adding this into your podfile:
After this step you will also need to resolve RCTAppSetupUtils.h, for doing so add "${PODS_ROOT}/../../../../node_modules/react-native/Libraries/AppDelegate" in Header search paths in the build settings of main target of application, also change I know this is not an ideal solution but it will bypass current errors for bumping your ReactNative version to 0.72.4. Note to developers: Seems like all the problems lies in ReactCommon so I guess fixing its podspec might fix the issue |
Hello I found the solution after working on this for so many long :) So I did this :
If you don't want to create new project to copy new podfile code, you can have it here platform :ios, min_ios_version_supported linkage = ENV['USE_FRAMEWORKS'] target 'YourProject' do flags = get_default_flags() use_react_native!(
) target 'YourProjectTests' do post_install do |installer| )" Hope It will solve your problem with "react/debug/react_native_assert.h' file not found" error in react native ios |
After having been blocked many days, my issue was finally fixed by this: software-mansion/react-native-svg#2081 (comment) |
There are a few things we can do:
|
Thank you for your reply @cipolleschi. I'd be happy to create a reproducer but I think this issue is related to monorepos, so it doesn't seem possible to create a reproducer from that repo without huge changes. Is it going to be worthwhile to create a reproducer for this in that case? |
I think so. The more repro/examples we have, the more use-cases we can try to tackle with an holistic and general approach. If you can provide the smallest monorepo setup with installation instructions, we might be able to figure out how to help you and, perhaps, many others in a similar situation. |
Thanks for your reply @cipolleschi. As long as it doesn't matter how far I diverge from that repo to reproduce it, I'll try to find the time. At the moment this suggestion resolved our error: nrwl/nx#20115 (comment) |
Need help . here is the log ` ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command
Report
Stack
Plugins
Podfile# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
$RNMapboxMapsVersion = '= 11.0.0'
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'cargo' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'cargoTests' do
inherit! :complete
# Pods for testing
end
pre_install do |installer|
$RNMapboxMaps.pre_install(installer)
end
post_install do |installer|
$RNMapboxMaps.post_install(installer)
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
end
end Error
` |
@ManzurSaiyed007 Try to disable the hermes, put this line inside your use_react_native() :hermes_enabled => false |
now facing this issue after using that solution
|
@ManzurSaiyed007 I'm checking the RNMapBox Doc and the problem seems to be related to them, not the React-Native itself. I would open a new discussion on RNMapBox github, asking how to integrate it with React-Native new arch. |
any solution for this problem ? react-native: 0.72.6 |
@OzgunOzdemir did you try the solution I shared? |
@slapbox i tried your solution but still same error |
Did you ensure Flipper is disabled too? I'm not sure it's necessary, but it seems prudent and that's part of what we did. |
I disabled flipper and i tried this solution nrwl/nx#20115 (comment) but still same :( @slapbox I am using use_framework! and
|
I solved the problem. Add these code blocks to Podflie
|
@cetinahmetemre thanks for looping back to share! Could you clarify whether the changes you posted are needed in addition to, or instead of, the previously mentioned fixes? |
Where to add the code @cetinahmetemre? |
Thx for mentioning this was the one leading to FLT_MAX error. But downgrading to 0.72.4 didnt worked for me. I dont want to use the workaround too. Any other ideas? |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
I am also getting the same error. below is my
|
@abhayciitizen thanks for posting the podfile. Can you:
+ use_frameworks! :linkage => :static
+ $RNFirebaseAsStaticFramework = true
target 'GlicRX' do
config = use_native_modules!
- use_frameworks! :linkage => :static
- $RNFirebaseAsStaticFramework = true
- pod 'GoogleUtilities', :modular_headers => true;
- pod 'Firebase', :modular_headers => true
- pod 'FirebaseCoreInternal', :modular_headers => true
- pod 'FirebaseCore', :modular_headers => true
use_react_native!(
:path => config[:reactNativePath],
# 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,
+ :flipper_configuration => FlipperConfiguration.disabled,
# NO_FLIPPER=1
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
+ pod 'GoogleUtilities', :modular_headers => true;
+ pod 'Firebase', :modular_headers => true
+ pod 'FirebaseCoreInternal', :modular_headers => true
+ pod 'FirebaseCore', :modular_headers => true
The rationale of the changes in 1 is:
Let me know if this fixes. |
This doesn't work. I'm upgrading from 0.71.17 to 0.73.6 Also, rnfirebase.io states: My podfile after your @cipolleschi changes:
|
thanks for your reply @LeonelRiera. Below is my updated podfile and it's working fine. I am working on
|
this worked for me |
Description
I get the error: 'react/debug/react_native_assert.h' file not found, React-utils/RunLoopObserver.
This is my Podfile:
{
"name": "POK",
"version": "0.0.1",
"private": true,
"scripts": {
"postinstall": "patch-package",
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
"@react-native-clipboard/clipboard": "^1.11.2",
"@react-native-community/blur": "^4.3.2",
"@react-native-community/netinfo": "^9.4.1",
"@react-native-firebase/analytics": "^18.1.0",
"@react-native-firebase/app": "^18.1.0",
"@react-native-firebase/crashlytics": "^18.1.0",
"@react-native-firebase/messaging": "^18.1.0",
"@react-navigation/bottom-tabs": "^6.5.8",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"@react-navigation/stack": "^6.3.17",
"axios": "^1.4.0",
"buffer": "^6.0.3",
"card-validator": "^8.1.1",
"expo-modules-core": "^1.5.4",
"fbjs": "^3.0.5",
"isomorphic-webcrypto": "^2.3.8",
"js-base64": "^3.7.5",
"lodash": "^4.17.21",
"lodash.compact": "^3.0.1",
"lodash.every": "^4.6.0",
"lodash.pick": "^4.4.0",
"lodash.values": "^4.3.0",
"lottie-ios": "3.4.1",
"lottie-react-native": "^5.1.6",
"moment-timezone": "^0.5.43",
"patch-package": "^7.0.0",
"postinstall-postinstall": "^2.1.0",
"prop-types": "^15.8.1",
"react": "18.2.0",
"react-hook-form": "^7.45.1",
"react-native": "0.72.1",
"react-native-biometrics": "^3.0.1",
"react-native-blob-util": "^0.18.3",
"react-native-bootsplash": "^4.7.4",
"react-native-calendars": "^1.1299.0",
"react-native-camera": "^4.2.1",
"react-native-confirmation-code-field": "^7.3.1",
"react-native-contacts": "^7.0.5",
"react-native-device-info": "^10.7.0",
"react-native-fast-image": "^8.6.3",
"react-native-flash-message": "^0.4.1",
"react-native-flip-card": "^3.5.7",
"react-native-geocoding": "^0.5.0",
"react-native-geolocation-service": "^5.3.1",
"react-native-gesture-handler": "^2.12.0",
"react-native-google-places-autocomplete": "^2.5.1",
"react-native-image-picker": "^5.6.0",
"react-native-jumio-mobilesdk": "https://github.com/Jumio/mobile-react.git#v4.5.0",
"react-native-keychain": "^8.1.1",
"react-native-linear-gradient": "^2.7.3",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-localization": "^2.3.2",
"react-native-localize": "^3.0.2",
"react-native-map-clustering": "^3.4.2",
"react-native-maps": "^1.7.1",
"react-native-masked-text": "^1.13.0",
"react-native-mmkv": "^2.10.1",
"react-native-modal": "^13.0.1",
"react-native-modalize": "^2.1.1",
"react-native-pdf": "^6.7.1",
"react-native-permissions": "^3.8.3",
"react-native-qrcode-scanner": "^1.5.5",
"react-native-qrcode-svg": "^6.2.0",
"react-native-radial-gradient": "^1.1.3",
"react-native-radio-buttons": "^1.0.0",
"react-native-reanimated": "^3.3.0",
"react-native-safe-area-context": "^4.6.4",
"react-native-screens": "^3.22.1",
"react-native-skeleton-content-nonexpo": "^1.0.13",
"react-native-svg": "^13.9.0",
"react-native-toast-message": "^2.1.6",
"react-native-vector-icons": "^9.2.0",
"react-native-webview": "^13.2.2",
"react-redux": "^8.1.1",
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
"redux": "^4.2.1",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.4.2",
"reselect": "^4.1.8",
"socket.io-client": "^4.7.1",
"validate.js": "^0.13.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.7",
"@tsconfig/react-native": "^3.0.0",
"@types/metro-config": "^0.76.3",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.19.0",
"eslint-plugin-import": "^2.27.5",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.76.5",
"prettier": "^2.4.1",
"react-native-svg-transformer": "^1.0.0",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"engines": {
"node": ">=16"
}
}
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: