首页 > 解决方案 > 我的 AppCenter 失败并出现错误“在项目目录中找不到 `Podfile'”并且我的项目不使用 cocoapods

问题描述

我有一个 React Native (v0.59) 项目,我正在尝试在 AppCenter 上编译 iOS 版本,但我不断收到此错误:

No 'Podfile' found in the project directory.

我没有在我的项目中使用 cocoapods,为什么会出现这个错误?

我做了一个pod init,因为我正在尝试一些东西。但我已经删除了 podfile 并做了一个pod deintegrateand pod clean

有人能帮我吗?

标签: iosreact-nativecocoapodsvisual-studio-app-center

解决方案


很可能你没有跑步react-native link这是一个很好的解释。

您也可以尝试完全不使用 CocoaPods 进行集成,请参阅这些说明


推荐阅读