'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.
See original GitHub issueI tried to add new schemas to ios project. I added Staging-Debug copied from default Debug schema. When application is loading I catch the next error:
2019-10-24 15:43:05.427 [error][tid:com.facebook.react.JavaScript] Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.
2019-10-24 15:43:05.430 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.
2019-10-24 15:43:05.433396+0300 HelloGuest[3076:1701296] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.', reason: 'Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack:
getEnforcing@4947:28
<unknown>@41941:50
loadModuleImplementation@271:14
<unknown>@41900:40
loadModuleImplementation@271:14
<unknown>@36481:18
loadModuleImplementation@271:14
<unknown>@29159:16
loadModuleImplementation@271:14
guardedLoadModule@163:47
global code@375133:4
React Native version:
System: OS: macOS 10.15 CPU: (4) x64 Intel® Core™ i7-5557U CPU @ 3.10GHz Memory: 110.47 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - /usr/local/bin/node Yarn: 1.19.1 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 24, 26, 27, 28 Build Tools: 23.0.1, 27.0.3, 28.0.2, 28.0.3 System Images: android-24 | Google Play Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5522156 Xcode: 11.0/11A420a - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-cli: 2.0.1 react-native-create-library: 3.1.2 react-native-git-upgrade: 0.2.7
Why can it happen?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:21
- Comments:46 (3 by maintainers)
Top Related StackOverflow Question
I was able to solve this in my Podfile
This ensures that your build configuration is marked as “debug” or “release” in the underlying Pod xcode projects (including react-native).
Reference: https://guides.cocoapods.org/syntax/podfile.html#project
@mykhailo-melnyk
I was previously using react-native-scheme-manager to do this in older version of RN. What this did was go through every xcodeproj file that existed in node_modules and wrote all my projects build configurations in them (at least that is my rough understanding). What the Podfile does is quite similar, except it does no rewriting. It basically says take the build configuration “Staging-Debug” and handle it as if it were the build configuration “debug” in all the Pod dependencies. That is also only my rough understanding of how it works.
Yes. I would recommend a complete reinstall of everything:
Another caveat, if you, like me, are coming from using 'react-native-scheme-manager", uninstall this completely using the instructions from https://github.com/thekevinbrown/react-native-schemes-manager#uninstalling In my case this was no longer necessary to have and only caused more problems migrating from RN 59 -> 61