Common Setup Errors - uoftblueprint/the-period-purse-ios GitHub Wiki

Common Setup Errors

  1. When trying to run project using npm run ios, I see "Error: EMFILE: too many open files"
  1. When trying to run project using npm run ios, I see "error: unable to find utility 'simctl', not a developer tool or in PATH"
  1. Ran npm run ios, and you get 'error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65'.
  1. When I try to open the app on the simulator I see "Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager"

  1. When I try to open the app on the simulator I see: “Invariant Violation: “main” has not been registered”
  1. I see error "CocoaPodsError: Command pod install failed. Cause: pod exited with non-zero code: 1"
  • reinstall package managers in Rosetta 2
  • Run command npm audit fix
  • replace contents of index.json with
import 'react-native-gesture-handler';
import { registerRootComponent } from 'expo';
import { AppRegistry } from 'react-native';

import App from './App';

AppRegistry.registerComponent('main', () => App);
  1. When I try to run the app, I see "error Failed to launch the app on simulator, An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown."

VM Specific Errors

  1. You run npm run ios, and the simulator doesn't launch. See error below

image

  • Increase RAM allocated to the VM, or change which model you are simulating to on that requires less RAM
⚠️ **GitHub.com Fallback** ⚠️