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

  1. Restart metro (Close metro and start metro again)
  2. Ensure dependencies are correct npm install
  3. Reinstall build dependencies
    • (IOS) Reinstall pods cd ios && pod install --repo-update && cd ..
    • (Android) clean gradle cd android && ./gradlew clean && cd ..
  4. Nuke cache and clean everything related to build npm run reset
  5. Delete the project and clone it again
  6. Delete the simulator/emulator and add it again
me

Previous

Application Header

Next

Caching

me