简体   繁体   English

React Native:执行“yarn ios”后构建失败

[英]React Native : BUILD FAILED after doing "yarn ios"

I cloned a React Native app from github and followed the instructions in the Readme file ( yarn install ; cd ios && pod install ).我从 github 克隆了一个 React Native 应用程序,并按照自述文件中的说明进行操作( yarn install ; cd ios && pod install )。 The app was built successfully in Xcode, but when i try to run it from my terminal using yarn ios the build failed.该应用程序在 Xcode 中成功构建,但是当我尝试使用yarn ios从终端运行它时,构建失败。

The error is not descriptive enough, i can't figure out what caused the problem!!错误描述性不够,我无法弄清楚是什么导致了问题!!

Here is the error I am getting这是我得到的错误

在此处输入图像描述

If anyone has experienced such a thing before, please help me.如果有人以前经历过这样的事情,请帮助我。

This article helped me fix the problem the link这篇文章帮助我解决了链接问题

What I did?我做了什么?

At the end of my Podfile i add the following snippet and i run pod install command through terminal.在我的 Podfile 的末尾,我添加了以下代码片段并通过终端运行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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM