小编cod*_*ons的帖子

react-native 构建失败,错误代码为 65 和 ___darwin_check_fd_set_overflow

我正在尝试构建一个 React Native 应用程序。我之前已经与其他 React Native 项目合作过,并且没有遇到任何问题。这一次,我无法运行该应用程序。

我创建了一个新的 react-native 项目:

npx react-native init demoproject
Run Code Online (Sandbox Code Playgroud)

并运行它:

cd demoproject
npx react-native start
npx react-native run-ios
Run Code Online (Sandbox Code Playgroud)

在终端中,我收到此错误:

错误 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。要进一步调试构建日志,请考虑使用 Xcode.app 构建您的应用程序,方法是打开 demoproject.xcworkspace。使用 --verbose 标志运行 CLI 以获取更多详细信息。

当我尝试使用 Xcode 运行它时,出现此错误:

Undefined symbols for architecture x86_64:
  "___darwin_check_fd_set_overflow", referenced from:
  _RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

我尝试了这些步骤但没有成功。

react-native start --reset-cache
rm -rf node_modules/
rm …
Run Code Online (Sandbox Code Playgroud)

macos xcode xcodebuild ios react-native

5
推荐指数
2
解决办法
1045
查看次数

标签 统计

ios ×1

macos ×1

react-native ×1

xcode ×1

xcodebuild ×1