React Native iOS -> файл React/RCTAppSetupUtils.h не найденIOS

Программируем под IOS
Ответить
Anonymous
 React Native iOS -> файл React/RCTAppSetupUtils.h не найден

Сообщение Anonymous »

Описание
Я использую реактивную версию 0.78.0. после обновления я обнаружил проблему.
Файл React/RCTAppSetupUtils.h не найден
Package.json
{
"name": "mbc",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "expo run:android",
"ios": "react-native run-ios --simulator='iPhone 16 Pro' --verbose",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"cleanInstall": "rm -rf node_modules ios/Pods ios/Podfile.lock && watchman watch-del-all && npm i --legacy-peer-deps && npx pod-install",
"generate": "npx react-native generate-bootsplash ./src/assets/original_icon.png --background-color=F7F5F0 --logo-width=100 --assets-path=./src/assets --flavor=main"
},
"dependencies": {
"@expo/react-native-action-sheet": "^4.1.0",
"@hookform/resolvers": "^4.1.0",
"@miblanchard/react-native-slider": "^2.6.0",
"@react-native-async-storage/async-storage": "^2.1.1",
"@react-native-community/cli": "^15.1.3",
"@react-native-community/datetimepicker": "^8.3.0",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-community/picker": "^1.8.1",
"@react-native-community/push-notification-ios": "^1.11.0",
"@react-native-community/slider": "^4.5.5",
"@react-native-firebase/app": "^21.11.0",
"@react-native-firebase/crashlytics": "^21.11.0",
"@react-native-firebase/database": "^21.11.0",
"@react-native-firebase/messaging": "^21.11.0",
"@react-native-masked-view/masked-view": "^0.3.2",
"@react-navigation/native": "^7.0.14",
"@react-navigation/stack": "^7.1.1",
"@types/react": "^19.0.10",
"axios": "^1.7.9",
"expo": "^52.0.37",
"jwt-decode": "^4.0.0",
"latest": "^0.2.0",
"lodash": "^4.17.21",
"lodash.debounce": "^4.0.8",
"moment": "^2.30.1",
"moment-timezone": "^0.5.47",
"numeral": "^2.0.6",
"react": "^19.0.0",
"react-hook-form": "^7.54.2",
"react-native": "^0.78.0",
"react-native-actionsheet": "^2.4.2",
"react-native-app-intro-slider": "^4.0.4",
"react-native-aws3": "^0.0.9",
"react-native-blob-util": "^0.21.2",
"react-native-bootsplash": "^6.3.3",
"react-native-custom-picker": "^0.4.0",
"react-native-deck-swiper": "^2.0.17",
"react-native-device-info": "^14.0.4",
"react-native-document-picker": "^9.3.1",
"react-native-fast-image": "^8.6.3",
"react-native-gesture-handler": "^2.24.0",
"react-native-get-random-values": "^1.11.0",
"react-native-gifted-chat": "^2.7.3",
"react-native-gradle-plugin": "^0.71.19",
"react-native-iap": "^12.16.2",
"react-native-image-crop-picker": "^0.42.0",
"react-native-image-picker": "^8.1.0",
"react-native-image-viewing": "^0.2.2",
"react-native-in-app-utils": "^6.1.0",
"react-native-inappbrowser-reborn": "^3.7.0",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-linear-gradient": "^2.8.3",
"react-native-macos": "^0.77.0",
"react-native-modal": "^13.0.1",
"react-native-modal-datetime-picker": "^18.0.0",
"react-native-onboarding-swiper": "^1.3.0",
"react-native-orientation": "^3.1.3",
"react-native-orientation-locker": "^1.7.0",
"react-native-pdf": "^6.7.7",
"react-native-permissions": "^5.2.5",
"react-native-picker-select": "^9.3.1",
"react-native-push-notification": "^8.1.1",
"react-native-range-slider": "^0.1.2",
"react-native-safe-area-context": "^5.2.0",
"react-native-safearea-height": "^1.0.8",
"react-native-screens": "^4.8.0",
"react-native-screenshot-prevent": "^1.2.1",
"react-native-sdwebimage": "^1.3.1",
"react-native-select-dropdown": "^4.0.1",
"react-native-share": "^12.0.9",
"react-native-simple-bottom-sheet": "^1.0.4",
"react-native-svg": "^15.11.1",
"react-native-swipe-gestures": "^1.0.5",
"react-native-toast-notifications": "^3.4.0",
"react-native-uuid": "^2.0.3",
"react-native-video": "^6.10.1",
"react-native-video-controls": "^2.8.1",
"react-native-view-overflow": "^0.0.5",
"react-native-webview": "^13.13.2",
"react-redux": "^9.2.0",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
"redux-saga": "^1.3.0",
"redux-thunk": "^3.1.0",
"rn-range-slider": "^2.2.2",
"uuid": "^11.1.0",
"yup": "^1.6.1"
},
"devDependencies": {
"@babel/core": "^7.26.9",
"@babel/runtime": "^7.26.9",
"@react-native-community/eslint-config": "^3.2.0",
"babel-jest": "^29.7.0",
"eslint": "^9.20.1",
"jest": "^29.7.0",
"metro-react-native-babel-preset": "^0.77.0",
"react-native-svg-transformer": "^1.5.0",
"react-test-renderer": "^19.0.0"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./src/assets/fonts/"
]
},
"volta": {
"node": "16.20.2",
"yarn": "4.3.1"
}
}

Шаги по воспроизведению
Обновление до React-Native 0.78.0
Установка npm или Yarn install
Встройте xcode или запустите React-native run-ios
Версия React Native
0.78.0
Затронутые платформы
Среда выполнения — iOS
Вывод информации npx @react-native-community/cli
System:
OS: macOS 15.1
CPU: (8) arm64 Apple M1
Memory: 146.19 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 23.7.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 2.15.12
path: ~/Documents/Hera/Project/MBC-Mobile/node_modules/.bin/npm
Watchman:
version: 2025.02.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/ryanenguero/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK:
API Levels:
- "23"
- "33"
- "34"
- "35"
Build Tools:
- 30.0.3
- 31.0.0
- 34.0.0
- 35.0.0
System Images:
- android-35 | AOSP ATD Intel x86_64 Atom
- android-35 | ARM 64 v8a
- android-35 | Intel x86_64 Atom
- android-35 | Google APIs ARM 64 v8a
- android-35 | Google APIs Intel x86_64 Atom
- android-35 | Google Play ARM 64 v8a
- android-35 | Google Play Intel x86_64 Atom
- android-35 | Pre-Release 16 KB Page Size Google Play ARM 64 v8a
- android-35 | Pre-Release 16 KB Page Size Google Play ARM Intel x86_64
Atom
- android-35 | Pre-Release 16 KB Page Size Google APIs ARM 64 v8a
- android-35 | Pre-Release 16 KB Page Size Google APIs Intel x86_64 Atom
- android-35 | Google APIs ATD ARM 64
- android-35 | Google APIs ATD Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23726.103.2422.13016713
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /opt/homebrew/opt/openjdk@17/bin/javac
Ruby:
version: 2.7.5
path: /Users/ryanenguero/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.1.3
wanted: ^15.1.3
react:
installed: 19.0.0
wanted: ^19.0.0
react-native:
installed: 0.78.0
wanted: ^0.78.0
react-native-macos:
installed: 0.77.0
wanted: ^0.77.0
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true

Stacktrace или журналы
error \=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/ryanenguero/Library/Developer/Xcode/DerivedData/MBC-fidzbekadlarkmaehrpgckufyetp/Index.noindex/DataStore -Wno-comma -Wno-shorten-64-to-32 @/Users/ryanenguero/Library/Developer/Xcode/DerivedData/MBC-fidzbekadlarkmaehrpgckufyetp/Build/Intermediates.noindex/MBC.build/Debug-iphoneos/MBC.build/Objects-normal/arm64/af3fcb34312c57c0f52879cdce924b91-common-args.resp -MMD -MT dependencies -MF /Users/ryanenguero/Library/Developer/Xcode/DerivedData/MBC-fidzbekadlarkmaehrpgckufyetp/Build/Intermediates.noindex/MBC.build/Debug-iphoneos/MBC.build/Objects-normal/arm64/AppDelegate.d --serialize-diagnostics /Users/ryanenguero/Library/Developer/Xcode/DerivedData/MBC-fidzbekadlarkmaehrpgckufyetp/Build/Intermediates.noindex/MBC.build/Debug-iphoneos/MBC.build/Objects-normal/arm64/AppDelegate.dia -c /Users/ryanenguero/Documents/Hera/Project/MBC-Mobile/ios/MBC/AppDelegate.mm -o /Users/ryanenguero/Library/Developer/Xcode/DerivedData/MBC-fidzbekadlarkmaehrpgckufyetp/Build/Intermediates.noindex/MBC.build/Debug-iphoneos/MBC.build/Objects-normal/arm64/AppDelegate.o -index-unit-output-path /MBC.build/Debug-iphoneos/MBC.build/Objects-normal/arm64/AppDelegate.o
error 'React/RCTAppSetupUtils.h' file not found
error generated.
error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'MBC.xcworkspace'.


Подробнее здесь: https://stackoverflow.com/questions/794 ... -not-found
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»