首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pod安装在react-native中失败

pod安装在react-native中失败
EN

Stack Overflow用户
提问于 2020-07-23 04:22:51
回答 1查看 391关注 0票数 0

从我的库的根项目运行pod install会出现以下错误:-

代码语言:javascript
复制
➜ app git:(master) ✗ pod install                                 
    WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    
[!] No `Podfile' found in the project directory.

当我从/ios内部运行pod install时,我得到以下错误:-

代码语言:javascript
复制
[!] Invalid `Podfile` file: cannot load such file -- app/node_modules/react-native-unimodules/cocoapods.

 #  from app/ios/Podfile:3
 #  -------------------------------------------
 #  
 >  require_relative '../node_modules/react-native-unimodules/cocoapods'
 #  require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
EN

回答 1

Stack Overflow用户

发布于 2020-07-24 23:17:17

您应该在Podifle所在的ios目录中运行pod install

代码语言:javascript
复制
cd ios
pod install
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63042611

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档