【问题标题】:React Native : BUILD FAILED after doing "yarn ios"React Native:在执行“yarn ios”后构建失败
【发布时间】:2022-01-06 05:36:30
【问题描述】:

我从 github 克隆了一个 React Native 应用程序,并按照自述文件 (yarn install;cd ios && pod install) 中的说明进行操作。该应用程序在 Xcode 中成功构建,但是当我尝试使用 yarn ios 从终端运行它时,构建失败。

错误描述性不够,我不知道是什么原因造成的!

这是我遇到的错误

如果有人曾经遇到过这样的事情,请帮助我。

【问题讨论】:

  • 您好!您使用的 XCode、React-Native 和 MacOS 的版本是什么?
  • React-Native : "0.65.1" ; Xcode:Version 13.1 (13A1030d); MacOS:Big Sur 11.5.2

标签: ios react-native cocoapods ios-simulator yarnpkg-v2


【解决方案1】:

这篇文章帮我解决了问题the link

我做了什么?

在我的 Podfile 末尾添加以下 sn-p 并通过终端运行 pod install 命令。

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings["ONLY_ACTIVE_ARCH"] = "YES"
    end
  end
end

【讨论】:

    猜你喜欢
    • 2017-09-09
    • 2019-06-06
    • 2019-08-16
    • 2016-10-27
    • 2021-12-16
    • 2021-02-04
    • 1970-01-01
    • 1970-01-01
    • 2021-06-13
    相关资源
    最近更新 更多