0

I am trying to run a development on iOS using eas build. The app works fine on Expo Go for both Android and iOS, and the development build works fine on Android, but it is giving me this error on iPhone when I try to open it:

Unhandled JS Exception:
TurboModuleRegistry.getEnforcing(...):
'PlatformConstants' could not be found. Verify that a module by this name is registered in the native library. 

I am using an expo MANAGED workflow.

I assume PlatformConstants refers to Platform from React native (correct me if I'm wrong), I tried to see if there was any additional setup required for iOS, but couldn't find anything. I also looked into my package.json to see if there was any issue with the dependencies but couldn't find anything:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@gorhom/bottom-sheet": "^4.4.5",
    "@ptomasroos/react-native-multi-slider": "^2.2.2",
    "@react-native-community/checkbox": "^0.5.14",
    "@react-native-community/datetimepicker": "6.5.2",
    "@react-native-community/image-editor": "^2.3.0",
    "@react-native-picker/picker": "2.4.8",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.1",
    "@react-navigation/stack": "^6.3.4",
    "@reduxjs/toolkit": "^1.9.0",
    "@shopify/flash-list": "1.3.1",
    "@tighten/react-native-time-input": "^1.0.3",
    "date-fns": "^2.29.3",
    "deprecated-react-native-prop-types": "^2.3.0",
    "expo": "~47.0.6",
    "expo-av": "~13.0.2",
    "expo-build-properties": "~0.4.1",
    "expo-camera": "~13.1.0",
    "expo-checkbox": "^2.2.2",
    "expo-constants": "~14.0.2",
    "expo-dev-client": "~2.0.1",
    "expo-fast-image": "^1.1.3",
    "expo-file-system": "~15.1.1",
    "expo-font": "~11.0.1",
    "expo-image-manipulator": "~11.0.0",
    "expo-image-picker": "~14.0.2",
    "expo-media-library": "~15.0.0",
    "expo-sharing": "~11.0.1",
    "expo-status-bar": "~1.4.2",
    "firebase": "^8.6.3",
    "react": "18.1.0",
    "react-native": "0.70.5",
    "react-native-dialog": "^9.3.0",
    "react-native-double-tap": "^1.0.1",
    "react-native-flags": "^1.0.0",
    "react-native-gesture-handler": "~2.8.0",
    "react-native-modal-datetime-picker": "^14.0.1",
    "react-native-reanimated": "~2.12.0",
    "react-native-root-toast": "^3.3.1",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-share": "^8.0.1",
    "react-native-view-shot": "3.4.0",
    "react-query": "^3.39.2",
    "react-redux": "^8.0.5",
    "redux": "^4.2.0",
    "redux-thunk": "^2.4.2",
    "rn-country-dropdown-picker": "^2.1.8",
    "styled-components-native": "^1.0.2",
    "uuid-random": "^1.3.2"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true
}

Similar posts suggested modifying pods, but this doesn't apply to me since I am on an expo managed workflow. Any ideas on how to further debug this would be great!

cb1998
  • 1
  • 1

0 Answers0