React native xcode无法正常工作,因为ReactCommon/jsi/JSCRuntime.h失败

ac1kyiln  于 2023-08-07  发布在  React
关注(0)|答案(1)|浏览(85)
The following build commands failed:
   CpHeader /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-eclfaotwufydlccnbbpdrgkgblbf/Build/Products/Debug-iphonesimulator/React-jsi/jsi.framework/Headers/JSCRuntime.h /Users/myname/Desktop/MyApp/node_modules/react-native/ReactCommon/jsi/JSCRuntime.h (in target 'React-jsi' from project 'Pods')
(1 failure)

字符串
我得到这个错误的最后3days,无法弄清楚这是什么,以及如何修复它.我甚至猜不出这个错误是什么。我看到许多其他职位和他们的错误信息大多是关于失踪的jsi文件。
(我没有使用expo)这是我的package.json

{
  "name": "MyApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-firebase/app": "^16.5.0",
    "@react-native-firebase/auth": "^16.5.0",
    "@react-native-google-signin/google-signin": "^9.0.2",
    "@react-native-masked-view/masked-view": "^0.2.8",
    "@react-navigation/native": "^6.1.1",
    "@react-navigation/native-stack": "^6.9.7",
    "@react-navigation/stack": "^6.3.10",
    "axios": "^1.2.2",
    "react": "18.1.0",
    "react-native": "0.70.6",
    "react-native-gesture-handler": "^2.8.0",
    "react-native-safe-area-context": "^4.4.1",
    "react-native-screens": "^3.18.2",
    "react-native-webview": "^11.26.0",
    "react-native-youtube-iframe": "^2.2.2"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "0.72.3",
    "react-test-renderer": "18.1.0"
  },
  "jest": {
    "preset": "react-native"
  }
}


有人知道如何解决这个问题吗?

k97glaaz

k97glaaz1#

此问题已由pod install修复,并重新运行间隔。在此之后,我得到了另一个错误

The following build commands failed:
        CompileC /Users/myname/Library/Developer/Xcode/MyApp-eclfaotwufydlccnbbpdrgkgblbf/Build/Intermediates.noindex/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/arm64/AppDelegate.o /Users/myname/Desktop/MyApp/ios/MyApp/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'MyApp' from project 'MyApp')
(1 failure)

字符串
并通过溶液固定

相关问题