小编eug*_*544的帖子

React-Native 新的 ios 项目未构建。RCT-愚蠢的语义问题

我按照https://reactnative.dev/docs/environment-setup中的步骤进行操作,在初始化应用程序后,当我去构建我的应用程序时,它在终端中给出了此错误:

** BUILD FAILED **


The following build commands failed:
    CompileC /Users/----/Library/Developer/Xcode/DerivedData/AwesomeProject-fneeqrmgpvoyyygpzbykmsofeknl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/asaadat/Documents/CollegeStuff/EECS\ 441/test_app/AwesomeProject/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
    CompileC /Users/----/Library/Developer/Xcode/DerivedData/AwesomeProject-fneeqrmgpvoyyygpzbykmsofeknl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/NetOps.o /Users/asaadat/Documents/CollegeStuff/EECS\ 441/test_app/AwesomeProject/ios/Pods/RCT-Folly/folly/net/NetOps.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(2 failures)
Run Code Online (Sandbox Code Playgroud)

在 xcode 中,当我尝试构建 ios 应用程序时,它向我显示以下内容: xcode 屏幕截图

我尝试重新安装 pod 和 pod 存储库更新,甚至重新开始教程。我还删除了node_modules并再次安装了npm。还是同样的错误。我使用的是 React-Native 0.66。

我是使用 React-Native 和 ios 进行开发的新手,我很困惑为什么一个全新的项目会展示这一点。

这是我的 Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'AwesomeProject' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # …
Run Code Online (Sandbox Code Playgroud)

ios reactjs react-native

7
推荐指数
1
解决办法
6418
查看次数

标签 统计

ios ×1

react-native ×1

reactjs ×1