简体   繁体   English

XCode 不会为 React Native 项目创建 pod 依赖项

[英]XCode does not create pod dependencies for React Native Project

Project config:项目配置:

Xcode @ 13.4.1 (13F100) 
cocoapods @ 1.11.3
React Native @ 0.64.0
iOS target @ 11.0

I can't build this mobile project and XCode says there's file missing.我无法构建这个移动项目,XCode 说缺少文件。

fatal error: module map file '/Users/myself/Library/Developer/Xcode/DerivedData/myproject/Products/Debug-iphonesimulator/NextLevelSessionExporter/NextLevelSessionExporter.modulemap' not found

When I run pod install , says its has run without errors, but checking into Xcode/DerivedData/myproject/Build/Products/Debug-iphonesimulator and it does not show all the dependencies folder as it should.当我运行pod install时,它说它运行没有错误,但是检查到Xcode/DerivedData/myproject/Build/Products/Debug-iphonesimulator并且它没有显示所有应有的依赖项文件夹。

I tried我试过了

  • Removing ~/.cocoapods folder删除~/.cocoapods文件夹
  • Deleting ios/Pods/ folder and Podfile.lock删除ios/Pods/文件夹和Podfile.lock
  • Deleting DerivedData folder completely完全删除DerivedData文件夹

No progress so far.至今没有任何进展。

Any guidance will be welcome.欢迎任何指导。

Follow the below steps:请按照以下步骤操作:

  1. Delete cocoapods folder, ios/Pods/ folder and Podfile.lock file删除cocoapods文件夹、 ios/Pods/文件夹和Podfile.lock文件

  2. Deleting DerivedData folder删除DerivedData文件夹

  3. delete node_modules folder删除node_modules文件夹

  4. Run command pod install or pod repo update运行命令pod installpod repo update

Hope it will help you!希望对您有所帮助!

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

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