-7.9 C
New York
Tuesday, January 21, 2025

ios – React-RCTAppDelegate couldn’t construct module error with Xcode 16.2 and React Native 0.76.6


I’m utilizing Xcode 16.2 and I upgraded my React Native model from 0.70.8 to 0.76.6. Nonetheless, when I attempt to construct the app in Xcode, I encounter the next error:
React-RCTAppDelegate couldn’t construct module

xcode error ss

xcode error ss2

xcode error ss3

Podfile:

require Pod::Executable.execute_command('node', ['-p',
  'require.resolve(
    "react-native/scripts/react_native_pods.rb",
    {paths: [process.argv[1]]},
  )', __dir__]).strip

platform :ios, '15.1'
prepare_react_native_project!

# Firebase için gerekli ayarlar
use_modular_headers!
$RNFirebaseAnalyticsWithoutAdIdSupport = true

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
  use_frameworks! :linkage => linkage.to_sym
finish

goal 'AlohaNew' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # An absolute path to your utility root.
    :app_path => "#{Pod::Config.occasion.installation_root}/.."
  )

  goal 'AlohaNewTests' do
    inherit! :full
    # Pods for testing
  finish

  post_install do |installer|
    # https://github.com/fb/react-native/blob/primary/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      # :ccache_enabled => true
    )
  finish
finish

bundle.json:

  "title": "AlohaNew",
  "model": "0.0.1",
  "non-public": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "begin": "react-native begin",
    "check": "jest",
    "ios:beta": "react-native run-ios --scheme 'AlohaLiveStaging'  --configuration 'StagingDebug'",
    "clear": "cd android && ./gradlew clear && rm -rf ~/.gradle/caches/build-cache-* && ./gradlew --stop && cd .. && watchman watch-del-all && rm -rf node_modules/ && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* &&  yarn cache clear && yarn set up && cd ios && rm -rf Podfile.lock && rm -rf Pods/ && pod set up && cd .. && yarn begin --reset-cache",
    "metro-clean": "watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* &&  yarn cache clear && yarn begin --reset-cache",
    "cache-clean": "yarn begin --reset-cache",
    "postinstall": "patch-package",
    "prettier:write": "yarn prettier --write src/**/*.{js,ts,tsx,json}",
    "package-check": "npm-check -i @aloha/* -p",
    "package-check:dev": "npm-check -i @aloha/* -d",
    "build-android:apk": "cd android && ./gradlew clear && rm -rf ~/.gradle/caches/build-cache-* && ./gradlew --stop && watchman watch-del-all && ./gradlew assembleProductionRelease && ./gradlew --stop",
    "build-android-market": "cd android && ./gradlew bundleProductionRelease"
  },
  "dependencies": {
    "@eva-design/eva": "^2.2.0",
    "@invertase/react-native-apple-authentication": "^2.3.0",
    "@ptomasroos/react-native-multi-slider": "^2.2.2",
    "@react-native-clipboard/clipboard": "^1.12.1",
    "@react-native-community/blur": "^4.4.0",
    "@react-native-community/datetimepicker": "^7.6.2",
    "@react-native-firebase/analytics": "^18.7.3",
    "@react-native-firebase/app": "^18.7.3",
    "@react-native-firebase/auth": "^18.7.3",
    "@react-native-firebase/crashlytics": "^18.7.3",
    "@react-native-firebase/database": "^18.7.3",
    "@react-native-firebase/messaging": "^18.7.3",
    "@react-native-firebase/perf": "^18.7.3",
    "@react-native-google-signin/google-signin": "^11.0.0",
    "@react-native-masked-view/masked-view": "^0.3.1",
    "@react-navigation/bottom-tabs": "^6.5.11",
    "@react-navigation/drawer": "^6.6.6",
    "@react-navigation/components": "^1.3.21",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/stack": "^6.3.20",
    "@reduxjs/toolkit": "^2.0.1",
    "@rnhooks/keyboard": "^1.1.0",
    "@sentry/react-native": "^6.5.0",
    "@ui-kitten/elements": "^5.3.1",
    "@ui-kitten/eva-icons": "^5.3.1",
    "add": "^2.0.6",
    "axios": "^1.6.5",
    "deprecated-react-native-prop-types": "^5.0.0",
    "he": "^1.2.0",
    "i18next": "^23.7.16",
    "lodash": "^4.17.21",
    "lottie-ios": "4.4.1",
    "lottie-react-native": "^6.5.1",
    "metro-config": "^0.81.0",
    "second": "^2.30.1",
    "moment-duration-format": "^2.3.2",
    "prop-types": "^15.8.1",
    "react": "18.3.1",
    "react-i18next": "^14.0.0",
    "react-native": "0.76.6",
    "react-native-agora": "^4.2.6",
    "react-native-bootsplash": "^5.1.3",
    "react-native-code-push": "^8.1.0",
    "react-native-config": "^1.5.1",
    "react-native-device-info": "^10.12.0",
    "react-native-dialog": "^9.3.0",
    "react-native-fast-image": "^8.6.3",
    "react-native-fbsdk-next": "^12.1.2",
    "react-native-flash-message": "^0.4.2",
    "react-native-gesture-handler": "^2.14.1",
    "react-native-gifted-chat": "^2.4.0",
    "react-native-google-mobile-ads": "^12.10.0",
    "react-native-hyperlink": "^0.0.22",
    "react-native-inappbrowser-reborn": "^3.7.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-localize": "^3.0.4",
    "react-native-mmkv": "^2.11.0",
    "react-native-modal": "^13.0.1",
    "react-native-modal-datetime-picker": "^17.1.0",
    "react-native-orientation-locker": "^1.6.0",
    "react-native-pager-view": "^6.2.3",
    "react-native-permissions": "^4.0.4",
    "react-native-purchases": "^7.19.0",
    "react-native-reanimated": "^3.6.1",
    "react-native-restart": "^0.0.27",
    "react-native-safe-area-context": "^4.8.2",
    "react-native-screens": "^3.29.0",
    "react-native-snackbar": "^2.6.2",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-store-review": "^0.4.0",
    "react-native-svg": "^14.1.0",
    "react-native-swipe-list-view": "^3.2.9",
    "react-native-tab-view": "^3.5.2",
    "react-native-vector-icons": "^10.0.3",
    "react-native-walkthrough-tooltip": "^1.5.0",
    "react-redux": "^9.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.26.0",
    "@babel/plugin-proposal-decorators": "^7.25.9",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "15.0.1",
    "@react-native-community/cli-platform-android": "15.0.1",
    "@react-native-community/cli-platform-ios": "15.0.1",
    "@react-native/babel-preset": "0.76.6",
    "@react-native/eslint-config": "0.76.6",
    "@react-native/metro-config": "0.76.6",
    "@react-native/typescript-config": "0.76.6",
    "@tsconfig/react-native": "^3.0.5",
    "@sorts/react": "^18.2.6",
    "@sorts/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "babel-plugin-module-resolver": "^5.0.2",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "patch-package": "^8.0.0",
    "postinstall-postinstall": "^2.1.0",
    "prettier": "2.8.8",
    "react-test-renderer": "18.3.1",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  },
  "packageManager": "[email protected]"
}
  • ruby model : ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM
    [arm64-darwin23]
  • pod model : 1.13.0
  • Node model : v20.16.0
  • yarn model : 4.6.0
  • Xcode model: 16.2
  • React Native model: 0.76.6
  • macOS model: sonoma 14.5

I’ve tried the next steps:

  1. Eliminated and reinstalled node_modules (npm set up or yarn).
  2. Cleaned and reinstalled the Pods (pod set up).
  3. Cleaned the Xcode cache.
  4. Cleared DerivedData in Xcode.

Thanks prematurely 😊

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles