错误 无法构建 iOS 项目.我们运行了“xcodebuild"命令,但它以错误代码 65 退出 [英] error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

查看:64
本文介绍了错误 无法构建 iOS 项目.我们运行了“xcodebuild"命令,但它以错误代码 65 退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个 react-native 应用程序,但在运行命令 react-native run-ios 期间,我突然在终端上收到此错误消息.相同的代码在 10 分钟前工作正常,突然我收到此错误消息.请帮忙...

I've build a react-native application and suddenly I get this error message on my terminal during run of the command react-native run-ios. The same code work fine 10 minutes ago and suddenly I get this error message. Please help...

推荐答案

已解决:请务必更新您的 Xcode 人员!

SOLVED: Always be sure to update your Xcode folks!

提示:不要从苹果商店购买(但一定要从苹果官方网站购买)

Protip: And don't do it from the apple store (but always do it from an official apple website of course)

提示来自: http://ericasadun.com/2016/03/22/xcode-upgrades-lessons-learned/

苹果官方下载页面: https://developer.apple.com/下载/更多/

以上方法无法解决的朋友

  1. 转到 Xcode 中的项目设置.菜单文件->项目设置

  1. Go to project settings in Xcode. Menu File->Project Settings

转到每个用户的项目设置部分.

Go to per-User Project Settings section.

点击高级.

选择 Xcode 默认选项.以前这曾经是我项目的遗产.

Select Xcode Default option. previously this used to be Legacy for my project.

我对类似的线路进行了分析并得出结论,clean 导致存档失败.因此,新的构建系统不会清除 custom/legacy 构建目录.

I have analysed on similar lines and concluded that clean is causing the archive to fail. So, the new build system is not clearing the custom/legacy build directory.

delete the build/ folder in ios/ and rerun if that doesn't do any change then
File -> Project Settings (or WorkSpace Settings) -> Build System -> Legacy Build System
Rerun and voilà!

如果仍然失败,您需要清理整个项目

If it still Fails you need to clean full project

执行以下操作:

  • 手动删除ios目录
  • 清理缓存运行 npm cache clean --force
  • 运行 react-native 弹出
  • 重新安装所有软件包 npm install
  • 运行链接命令react-native link
  • 最后运行react-native run-ios

这篇关于错误 无法构建 iOS 项目.我们运行了“xcodebuild"命令,但它以错误代码 65 退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆