首页 > 解决方案 > 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出 - 反应原生

问题描述

我有一个 RN 项目,它在 android 中运行良好,但在 iOS 中出现问题。我在其中使用了 react-native-firebase。是firebase产生的问题吗?

什么不起作用: - 在 Xcode 中使用旧设置并不能解决问题。- 从 xcode 运行项目

如果我运行 react-native run-ios,则会出现以下错误:

error Failed to build iOS project. We ran "xcodebuild" command but it exited 
with error code 65. To debug build logs further, consider building your app with 
Xcode.app, by opening qfo.xcworkspace

如果我从 xcode 运行项目,图像中会出现构建错误:

在 RNFirebaseInstanceId.m 文件中

在此处输入图像描述

标签: react-nativereact-native-iosreact-native-firebase

解决方案


#endif不见了 ?

请检查导入是否具有以下语法


#if __has_include("myinclude.h")
# include "myinclude.h"
#endif


推荐阅读