最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - React-RCTAppDelegate could not build module error with Xcode 16.2 and React Native 0.76.6 - Stack Overflow

programmeradmin2浏览0评论

I am using Xcode 16.2 and I upgraded my React Native version from 0.70.8 to 0.76.6. However, when I try to build the app in Xcode, I encounter the following error: React-RCTAppDelegate could not build 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.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

target 'AlohaNew' do
  config = use_native_modules!

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

  target 'AlohaNewTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    # .rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      # :ccache_enabled => true
    )
  end
end

package.json:

  "name": "AlohaNew",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest",
    "ios:beta": "react-native run-ios --scheme 'AlohaLiveStaging'  --configuration 'StagingDebug'",
    "clean": "cd android && ./gradlew clean && 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 clean && yarn install && cd ios && rm -rf Podfile.lock && rm -rf Pods/ && pod install && cd .. && yarn start --reset-cache",
    "metro-clean": "watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* &&  yarn cache clean && yarn start --reset-cache",
    "cache-clean": "yarn start --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 clean && 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/elements": "^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/components": "^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",
    "moment": "^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",
    "@types/react": "^18.2.6",
    "@types/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 version : ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23]
  • pod version : 1.13.0
  • Node version : v20.16.0
  • yarn version : 4.6.0
  • Xcode version: 16.2
  • React Native version: 0.76.6
  • macOS version: sonoma 14.5

I have tried the following steps:

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

Thanks in advance

发布评论

评论列表(0)

  1. 暂无评论