Debugging
Known errors#
Invariant invocation#
This is an error message that actually indicated that something is wrong with your code. Check logCat / xcode to identify the actual issue.
SDK "iphoneos" cannot be located#
The solution can be identified here: error: SDK "iphoneos" cannot be located
General solutions#
The following is a list of methods to fix issues that are not rooted in the code ordered by time and complexity This ordering is an alternative, most success has been with step 1 and 4, where 4 is a combination of step 2 and 3
- Restart metro (Close metro and start metro again)
- Ensure dependencies are correct
npm install - Reinstall build dependencies
- (IOS) Reinstall pods
cd ios && pod install --repo-update && cd .. - (Android) clean gradle
cd android && ./gradlew clean && cd ..
- (IOS) Reinstall pods
- Nuke cache and clean everything related to build
npm run reset - Delete the project and clone it again
- Delete the simulator/emulator and add it again
Previous
Application Header
Next