cli: Invalid `Podfile` file: undefined method `[]' for nil:NilClass.

Environment

System:
    OS: macOS 10.15.1
    CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
    Memory: 62.27 MB / 16.00 GB
    Shell: 5.0.11 - /usr/local/bin/bash
  Binaries:
    Node: 12.13.0 - /var/folders/n_/30jh5m816yzg3_cftvg647j40000gn/T/yarn--1574276617063-0.927548752503313/node
    Yarn: 1.19.1 - /var/folders/n_/30jh5m816yzg3_cftvg647j40000gn/T/yarn--1574276617063-0.927548752503313/yarn
    npm: 6.13.0 - ~/.nvm/versions/node/v12.13.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 22, 23, 24, 25, 26, 27, 28
      Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.0, 28.0.3
      System Images: android-25 | Android TV Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-N | Android TV Intel x86 Atom, android-N | Android Wear ARM EABI v7a, android-N | Android Wear Intel x86 Atom, android-N | Intel x86 Atom, android-N | Intel x86 Atom_64, android-P | Google Play Intel x86 Atom
      Android NDK: 20.1.5948944
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5977832
    Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
  npmPackages:
    @react-native-community/cli: 3.0.4 => 3.0.4 
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.4 => 0.61.4 
  npmGlobalPackages:
    react-native-cli: 2.0.1
    react-native-create-library: 3.1.2
    react-native-git-upgrade: 0.2.7

Description

[!] Invalid `Podfile` file: undefined method `[]' for nil:NilClass.

 #  from /app/packages/app/ios/Podfile:57
 #  -------------------------------------------
 #    # react_native_firebase!
 >    use_native_modules!
 #  end
 #  -------------------------------------------

Reproducible Demo

my podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

# plugin 'cocoapods-fix-react-native'git st
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
# require_relative '../node_modules/@react-native-firebase/app/pod_config'

project 'app', { 'Alpha' => :release, 'Staging' => :release }

target 'app' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!

  # Pods for app
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  # pod 'React-RCTLinking', :podspec => '../node_modules/react-native/Libraries/LinkingIOS/React-RCTLinking.podspec'

  pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios/RNFirebase.podspec'

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'

 target 'appTests' do
    inherit! :search_paths
    # Pods for testing
  end

  # react_native_firebase!
  use_native_modules!
end

target 'app-tvOS' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!

  # Pods for app-tvOS

  target 'app-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

this is a monorepo setup

this is a list of react-native packages used

"@react-native-community/async-storage": "1.6.3",
"@react-native-community/cameraroll": "^1.3.0",
"@react-native-community/cli": "3.0.4",
    "@react-native-community/cli-platform-android": "3.0.3",
    "@react-native-community/cli-platform-ios": "3.0.0",
"react-native-camera": "3.11.1",
    "react-native-device-info": "5.3.1",
    "react-native-document-picker": "3.2.4",
"react-native-firebase": "5.5.6",
    "react-native-gesture-handler": "1.5.0",
    "react-native-image-resizer": "1.1.0",
"react-native-linear-gradient": "2.5.6",
    "react-native-localization": "2.1.6",
    "react-native-reanimated": "1.4.0",
    "react-native-screens": "2.0.0-alpha.11",
    "react-native-splash-screen": "3.2.0",
    "react-native-svg": "9.13.3",
    "react-native-tts": "3.0.0",
    "react-native-voice": "git+https://github.com/wenkesj/react-native-voice.git#62a3a0e40fece93c0d4b5c664d563207a960ef87",
    "react-native-webview": "7.5.1",
    "reanimated-bottom-sheet": "1.0.0-alpha.16",
    ```

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 33 (15 by maintainers)

Most upvoted comments

I had upgraded from 61.5 to 63.1 and my problem solved when removing path param from use_react_native! in podfile something like this: config = use_native_modules! use_react_native!

fixed removing

@react-native-community/cli @react-native-community/cli-platform-android @react-native-community/cli-platform-ios

instead I’ve used the one that react-native 61 depends on

@cjam @sibelius this should not be necessary anymore, since in v3.1 we migrated off of npx there. Please update the @react-native-community/cli to the latest version.

Some time you may also need to check the Command like tool was set correctly in xcode Screenshot 2023-12-14 at 3 15 40 PM

Do you have a package.json in packages/mobile? Where are package.jsons and what native packages are inside? With a reproduction we could avoid these questions, just saying.

we upgrade from cli v2 to cli v3

image

npx react-native config

{
  "root": "/app/packages/app",
  "reactNativePath": "/app/packages/app/node_modules/react-native",
  "dependencies": {
    "@app/core": {
      "root": "/app/packages/core",
      "name": "@app/core",
      "platforms": {
        "ios": null,
        "android": null
      },
      "assets": [
        "/app/packages/core/src/assets/fonts/Montserrat-Bold.ttf",
        "/app/packages/core/src/assets/fonts/Montserrat-Regular.ttf",
        "/app/packages/core/src/assets/fonts/Montserrat-SemiBold.ttf",
        "/app/packages/core/src/assets/fonts/OpenSans-Bold.ttf",
        "/app/packages/core/src/assets/fonts/OpenSans-Regular.ttf",
        "/app/packages/core/src/assets/fonts/OpenSans-SemiBold.ttf"
      ],
      "hooks": {},
      "params": []
    },
    "@react-native-community/async-storage": {
      "root": "/app/packages/app/node_modules/@react-native-community/async-storage",
      "name": "@react-native-community/async-storage",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/@react-native-community/async-storage/ios",
          "folder": "/app/packages/app/node_modules/@react-native-community/async-storage",
          "pbxprojPath": "/app/packages/app/node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/@react-native-community/async-storage/RNCAsyncStorage.podspec",
          "projectPath": "/app/packages/app/node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj",
          "projectName": "RNCAsyncStorage.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/@react-native-community/async-storage/android",
          "folder": "/app/packages/app/node_modules/@react-native-community/async-storage",
          "packageImportPath": "import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;",
          "packageInstance": "new AsyncStoragePackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "@react-native-community/cameraroll": {
      "root": "/app/packages/app/node_modules/@react-native-community/cameraroll",
      "name": "@react-native-community/cameraroll",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/@react-native-community/cameraroll/ios",
          "folder": "/app/packages/app/node_modules/@react-native-community/cameraroll",
          "pbxprojPath": "/app/packages/app/node_modules/@react-native-community/cameraroll/ios/RNCCameraRoll.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/@react-native-community/cameraroll/react-native-cameraroll.podspec",
          "projectPath": "/app/packages/app/node_modules/@react-native-community/cameraroll/ios/RNCCameraRoll.xcodeproj",
          "projectName": "RNCCameraRoll.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/@react-native-community/cameraroll/android",
          "folder": "/app/packages/app/node_modules/@react-native-community/cameraroll",
          "packageImportPath": "import com.reactnativecommunity.cameraroll.CameraRollPackage;",
          "packageInstance": "new CameraRollPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-app-auth": {
      "root": "/app/packages/app/node_modules/react-native-app-auth",
      "name": "react-native-app-auth",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-app-auth/ios",
          "folder": "/app/packages/app/node_modules/react-native-app-auth",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-app-auth/ios/RNAppAuth.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-app-auth/react-native-app-auth.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-app-auth/ios/RNAppAuth.xcodeproj",
          "projectName": "RNAppAuth.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-app-auth/android",
          "folder": "/app/packages/app/node_modules/react-native-app-auth",
          "packageImportPath": "import com.rnappauth.RNAppAuthPackage;",
          "packageInstance": "new RNAppAuthPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-camera": {
      "root": "/app/packages/app/node_modules/react-native-camera",
      "name": "react-native-camera",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-camera/ios",
          "folder": "/app/packages/app/node_modules/react-native-camera",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-camera/ios/RNCamera.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-camera/react-native-camera.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-camera/ios/RNCamera.xcodeproj",
          "projectName": "RNCamera.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-camera/android",
          "folder": "/app/packages/app/node_modules/react-native-camera",
          "packageImportPath": "import org.reactnative.camera.RNCameraPackage;",
          "packageInstance": "new RNCameraPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-device-info": {
      "root": "/app/packages/app/node_modules/react-native-device-info",
      "name": "react-native-device-info",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-device-info/ios",
          "folder": "/app/packages/app/node_modules/react-native-device-info",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-device-info/ios/RNDeviceInfo.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-device-info/RNDeviceInfo.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-device-info/ios/RNDeviceInfo.xcodeproj",
          "projectName": "RNDeviceInfo.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-device-info/android",
          "folder": "/app/packages/app/node_modules/react-native-device-info",
          "packageImportPath": "import com.learnium.RNDeviceInfo.RNDeviceInfo;",
          "packageInstance": "new RNDeviceInfo()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-document-picker": {
      "root": "/app/packages/app/node_modules/react-native-document-picker",
      "name": "react-native-document-picker",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-document-picker/ios",
          "folder": "/app/packages/app/node_modules/react-native-document-picker",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-document-picker/ios/RNDocumentPicker.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-document-picker/react-native-document-picker.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-document-picker/ios/RNDocumentPicker.xcodeproj",
          "projectName": "RNDocumentPicker.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-document-picker/android",
          "folder": "/app/packages/app/node_modules/react-native-document-picker",
          "packageImportPath": "import io.github.elyx0.reactnativedocumentpicker.DocumentPickerPackage;",
          "packageInstance": "new DocumentPickerPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-firebase": {
      "root": "/app/packages/app/node_modules/react-native-firebase",
      "name": "react-native-firebase",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-firebase/ios",
          "folder": "/app/packages/app/node_modules/react-native-firebase",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-firebase/ios/RNFirebase.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-firebase/ios/RNFirebase.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-firebase/ios/RNFirebase.xcodeproj",
          "projectName": "RNFirebase.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-firebase/android",
          "folder": "/app/packages/app/node_modules/react-native-firebase",
          "packageImportPath": "import io.invertase.firebase.RNFirebasePackage;",
          "packageInstance": "new RNFirebasePackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-gesture-handler": {
      "root": "/app/packages/app/node_modules/react-native-gesture-handler",
      "name": "react-native-gesture-handler",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-gesture-handler/ios",
          "folder": "/app/packages/app/node_modules/react-native-gesture-handler",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-gesture-handler/RNGestureHandler.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj",
          "projectName": "RNGestureHandler.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-gesture-handler/android",
          "folder": "/app/packages/app/node_modules/react-native-gesture-handler",
          "packageImportPath": "import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;",
          "packageInstance": "new RNGestureHandlerPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-image-resizer": {
      "root": "/app/packages/app/node_modules/react-native-image-resizer",
      "name": "react-native-image-resizer",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-image-resizer/ios",
          "folder": "/app/packages/app/node_modules/react-native-image-resizer",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-image-resizer/ios/RCTImageResizer.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-image-resizer/react-native-image-resizer.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-image-resizer/ios/RCTImageResizer.xcodeproj",
          "projectName": "RCTImageResizer.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-image-resizer/android",
          "folder": "/app/packages/app/node_modules/react-native-image-resizer",
          "packageImportPath": "import fr.bamlab.rnimageresizer.ImageResizerPackage;",
          "packageInstance": "new ImageResizerPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-linear-gradient": {
      "root": "/app/packages/app/node_modules/react-native-linear-gradient",
      "name": "react-native-linear-gradient",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-linear-gradient",
          "folder": "/app/packages/app/node_modules/react-native-linear-gradient",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-linear-gradient/BVLinearGradient.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-linear-gradient/BVLinearGradient.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-linear-gradient/BVLinearGradient.xcodeproj",
          "projectName": "BVLinearGradient.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-linear-gradient/android",
          "folder": "/app/packages/app/node_modules/react-native-linear-gradient",
          "packageImportPath": "import com.BV.LinearGradient.LinearGradientPackage;",
          "packageInstance": "new LinearGradientPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-localization": {
      "root": "/app/packages/app/node_modules/react-native-localization",
      "name": "react-native-localization",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-localization/ios",
          "folder": "/app/packages/app/node_modules/react-native-localization",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-localization/ios/ReactNativeLocalization.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-localization/ReactNativeLocalization.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-localization/ios/ReactNativeLocalization.xcodeproj",
          "projectName": "ReactNativeLocalization.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-localization/android",
          "folder": "/app/packages/app/node_modules/react-native-localization",
          "packageImportPath": "import com.babisoft.ReactNativeLocalization.ReactNativeLocalizationPackage;",
          "packageInstance": "new ReactNativeLocalizationPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-reanimated": {
      "root": "/app/packages/app/node_modules/react-native-reanimated",
      "name": "react-native-reanimated",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-reanimated/ios",
          "folder": "/app/packages/app/node_modules/react-native-reanimated",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-reanimated/ios/RNReanimated.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-reanimated/RNReanimated.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-reanimated/ios/RNReanimated.xcodeproj",
          "projectName": "RNReanimated.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-reanimated/android",
          "folder": "/app/packages/app/node_modules/react-native-reanimated",
          "packageImportPath": "import com.swmansion.reanimated.ReanimatedPackage;",
          "packageInstance": "new ReanimatedPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-screens": {
      "root": "/app/packages/app/node_modules/react-native-screens",
      "name": "react-native-screens",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-screens/ios",
          "folder": "/app/packages/app/node_modules/react-native-screens",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-screens/ios/RNScreens.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-screens/RNScreens.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-screens/ios/RNScreens.xcodeproj",
          "projectName": "RNScreens.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-screens/android",
          "folder": "/app/packages/app/node_modules/react-native-screens",
          "packageImportPath": "import com.swmansion.rnscreens.RNScreensPackage;",
          "packageInstance": "new RNScreensPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-sentry": {
      "root": "/app/packages/app/node_modules/react-native-sentry",
      "name": "react-native-sentry",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-sentry/ios",
          "folder": "/app/packages/app/node_modules/react-native-sentry",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-sentry/ios/RNSentry.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-sentry/SentryReactNative.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-sentry/ios/RNSentry.xcodeproj",
          "projectName": "RNSentry.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [
            "libz.tbd"
          ],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-sentry/android",
          "folder": "/app/packages/app/node_modules/react-native-sentry",
          "packageImportPath": "import io.sentry.RNSentryPackage;",
          "packageInstance": "new RNSentryPackage()"
        }
      },
      "assets": [],
      "hooks": {
        "postlink": "node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android",
        "postunlink": "node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android --uninstall"
      },
      "params": []
    },
    "react-native-share": {
      "root": "/app/packages/app/node_modules/react-native-share",
      "name": "react-native-share",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-share/ios",
          "folder": "/app/packages/app/node_modules/react-native-share",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-share/ios/RNShare.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-share/RNShare.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-share/ios/RNShare.xcodeproj",
          "projectName": "RNShare.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-share/android",
          "folder": "/app/packages/app/node_modules/react-native-share",
          "packageImportPath": "import cl.json.RNSharePackage;",
          "packageInstance": "new RNSharePackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-splash-screen": {
      "root": "/app/packages/app/node_modules/react-native-splash-screen",
      "name": "react-native-splash-screen",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-splash-screen/ios",
          "folder": "/app/packages/app/node_modules/react-native-splash-screen",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-splash-screen/ios/SplashScreen.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-splash-screen/react-native-splash-screen.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-splash-screen/ios/SplashScreen.xcodeproj",
          "projectName": "SplashScreen.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-splash-screen/android",
          "folder": "/app/packages/app/node_modules/react-native-splash-screen",
          "packageImportPath": "import org.devio.rn.splashscreen.SplashScreenReactPackage;",
          "packageInstance": "new SplashScreenReactPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-svg": {
      "root": "/app/packages/app/node_modules/react-native-svg",
      "name": "react-native-svg",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-svg/ios",
          "folder": "/app/packages/app/node_modules/react-native-svg",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-svg/ios/RNSVG.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-svg/RNSVG.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-svg/ios/RNSVG.xcodeproj",
          "projectName": "RNSVG.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-svg/android",
          "folder": "/app/packages/app/node_modules/react-native-svg",
          "packageImportPath": "import com.horcrux.svg.SvgPackage;",
          "packageInstance": "new SvgPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-tts": {
      "root": "/app/packages/app/node_modules/react-native-tts",
      "name": "react-native-tts",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-tts/ios",
          "folder": "/app/packages/app/node_modules/react-native-tts",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-tts/ios/TextToSpeech.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-tts/TextToSpeech.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-tts/ios/TextToSpeech.xcodeproj",
          "projectName": "TextToSpeech.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-tts/android",
          "folder": "/app/packages/app/node_modules/react-native-tts",
          "packageImportPath": "import net.no_mad.tts.TextToSpeechPackage;",
          "packageInstance": "new TextToSpeechPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-voice": {
      "root": "/app/packages/app/node_modules/react-native-voice",
      "name": "react-native-voice",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-voice/ios",
          "folder": "/app/packages/app/node_modules/react-native-voice",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-voice/ios/Voice.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-voice/react-native-voice.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-voice/ios/Voice.xcodeproj",
          "projectName": "Voice.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-voice/android",
          "folder": "/app/packages/app/node_modules/react-native-voice",
          "packageImportPath": "import com.wenkesj.voice.VoicePackage;",
          "packageInstance": "new VoicePackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    },
    "react-native-webview": {
      "root": "/app/packages/app/node_modules/react-native-webview",
      "name": "react-native-webview",
      "platforms": {
        "ios": {
          "sourceDir": "/app/packages/app/node_modules/react-native-webview/ios",
          "folder": "/app/packages/app/node_modules/react-native-webview",
          "pbxprojPath": "/app/packages/app/node_modules/react-native-webview/ios/RNCWebView.xcodeproj/project.pbxproj",
          "podfile": null,
          "podspecPath": "/app/packages/app/node_modules/react-native-webview/react-native-webview.podspec",
          "projectPath": "/app/packages/app/node_modules/react-native-webview/ios/RNCWebView.xcodeproj",
          "projectName": "RNCWebView.xcodeproj",
          "libraryFolder": "Libraries",
          "sharedLibraries": [],
          "plist": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "/app/packages/app/node_modules/react-native-webview/android",
          "folder": "/app/packages/app/node_modules/react-native-webview",
          "packageImportPath": "import com.reactnativecommunity.webview.RNCWebViewPackage;",
          "packageInstance": "new RNCWebViewPackage()"
        }
      },
      "assets": [],
      "hooks": {},
      "params": []
    }
  },
  "commands": [
    {
      "name": "log-ios",
      "description": "starts iOS device syslog tail"
    },
    {
      "name": "run-ios",
      "description": "builds your app and starts it on iOS simulator",
      "examples": [
        {
          "desc": "Run on a different simulator, e.g. iPhone 5",
          "cmd": "react-native run-ios --simulator \"iPhone 5\""
        },
        {
          "desc": "Pass a non-standard location of iOS directory",
          "cmd": "react-native run-ios --project-path \"./app/ios\""
        },
        {
          "desc": "Run on a connected device, e.g. Max's iPhone",
          "cmd": "react-native run-ios --device \"Max's iPhone\""
        },
        {
          "desc": "Run on the AppleTV simulator",
          "cmd": "react-native run-ios --simulator \"Apple TV\"  --scheme \"helloworld-tvOS\""
        }
      ],
      "options": [
        {
          "name": "--simulator [string]",
          "description": "Explicitly set simulator to use. Optionally include iOS version betweenparenthesis at the end to match an exact version: \"iPhone 6 (10.0)\"",
          "default": "iPhone X"
        },
        {
          "name": "--configuration [string]",
          "description": "Explicitly set the scheme configuration to use",
          "default": "Debug"
        },
        {
          "name": "--scheme [string]",
          "description": "Explicitly set Xcode scheme to use"
        },
        {
          "name": "--project-path [string]",
          "description": "Path relative to project root where the Xcode project (.xcodeproj) lives.",
          "default": "ios"
        },
        {
          "name": "--device [string]",
          "description": "Explicitly set device to use by name.  The value is not required if you have a single device connected."
        },
        {
          "name": "--udid [string]",
          "description": "Explicitly set device to use by udid"
        },
        {
          "name": "--no-packager",
          "description": "Do not launch packager while building"
        },
        {
          "name": "--verbose",
          "description": "Do not use xcpretty even if installed"
        },
        {
          "name": "--port [number]",
          "default": 8081
        },
        {
          "name": "--terminal [string]",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path."
        }
      ]
    },
    {
      "name": "log-android",
      "description": "starts logkitty"
    },
    {
      "name": "run-android",
      "description": "builds your app and starts it on a connected Android emulator or device",
      "options": [
        {
          "name": "--root [string]",
          "description": "Override the root directory for the android build (which contains the android directory)",
          "default": ""
        },
        {
          "name": "--variant [string]",
          "description": "Specify your app's build variant",
          "default": "debug"
        },
        {
          "name": "--appFolder [string]",
          "description": "Specify a different application folder name for the android source. If not, we assume is \"app\"",
          "default": "app"
        },
        {
          "name": "--appId [string]",
          "description": "Specify an applicationId to launch after build.",
          "default": ""
        },
        {
          "name": "--appIdSuffix [string]",
          "description": "Specify an applicationIdSuffix to launch after build.",
          "default": ""
        },
        {
          "name": "--main-activity [string]",
          "description": "Name of the activity to start",
          "default": "MainActivity"
        },
        {
          "name": "--deviceId [string]",
          "description": "builds your app and starts it on a specific device/simulator with the given device id (listed by running \"adb devices\" on the command line)."
        },
        {
          "name": "--no-packager",
          "description": "Do not launch packager while building"
        },
        {
          "name": "--port [number]",
          "default": 8081
        },
        {
          "name": "--terminal [string]",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path.",
          "default": "Apple_Terminal"
        },
        {
          "name": "--tasks [list]",
          "description": "Run custom Gradle tasks. By default it's \"installDebug\""
        },
        {
          "name": "--no-jetifier",
          "description": "Do not run \"jetifier\" – the AndroidX transition tool. By default it runs before Gradle to ease working with libraries that don't support AndroidX yet. See more at: https://www.npmjs.com/package/jetifier.",
          "default": false
        }
      ]
    }
  ],
  "assets": [],
  "platforms": {
    "ios": {},
    "android": {}
  },
  "haste": {
    "providesModuleNodeModules": [
      "react-native"
    ],
    "platforms": [
      "ios",
      "android"
    ]
  },
  "project": {
    "ios": {
      "sourceDir": "/app/packages/app/ios",
      "folder": "/app/packages/app",
      "pbxprojPath": "/app/packages/app/ios/app.xcodeproj/project.pbxproj",
      "podfile": "/app/packages/app/ios/Podfile",
      "podspecPath": null,
      "projectPath": "/app/packages/app/ios/app.xcodeproj",
      "projectName": "app.xcodeproj",
      "libraryFolder": "Libraries",
      "sharedLibraries": [],
      "plist": [],
      "scriptPhases": []
    },
    "android": {
      "sourceDir": "/app/packages/app/android/app",
      "isFlat": false,
      "folder": "/app/packages/app",
      "stringsPath": "/app/packages/app/android/app/src/main/res/values/strings.xml",
      "manifestPath": "/app/packages/app/android/app/src/main/AndroidManifest.xml",
      "buildGradlePath": "/app/packages/app/android/app/build.gradle",
      "settingsGradlePath": "/app/packages/app/android/settings.gradle",
      "assetsPath": "/app/packages/app/android/app/src/main/assets",
      "mainFilePath": "/app/packages/app/android/app/src/main/java/app/myapp/app/MainApplication.java",
      "packageName": "app.myapp.app"
    }
  }
}

@sulagarde I think if you are using workspaces, and your project is nested, you can just pass in a custom relative path to the use_react_native! method. My /node_modules/react-native is at the root directory, but my app’s Podfile is down under /packages/myproject/ios so I use this in my Podfile:

  config = use_native_modules!

  use_react_native!(:path => "../../../node_modules/react-native")

all i did was pass in a custom path, and added some extra ../ as needed to make it correct

you can use patch-package until a fix lands