更新 iOS 17.2 后出现错误代码 65 缺少 FirebaseCoreInternal.modulemap

问题描述 投票:0回答:1

我已经构建了一个反应本机应用程序,今天在运行命令期间突然在终端上收到此错误消息

react-native run-ios
。代码工作正常,直到 XCode 强制我安装
iOS 17.2

这是我的错误

❌  fatal error: module map file '/Users/glabsmac/Documents/PROJECT/proj/proj-react-native/ios/build/Debug-iphoneos/FirebaseCoreInternal/FirebaseCoreInternal.modulemap' not found

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 Atendi.xcworkspace.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我尝试清除所有依赖项,但仍然收到此错误

watchman watch-del-all && rm -rf ~/Library/Developer/Xcode/DerivedData/ && rm -rf node_modules/ && rm -f yarn.lock && rm -rf ios/build/ && rm -rf ios/Pods/ && rm -f ios/Podfile.lock && npm cache verify && yarn install && cd ios/ && npx react-native setup-ios-permissions && pod install --repo-update && cd ../

请帮忙

xcode react-native cocoapods
1个回答
0
投票

您可以采取一些解决方法:

在ios文件夹中

    • 豆荚分解
    • brew 安装 cocoapods
    • 吊舱安装
  1. 在podfile中注释flipper函数;

     use_flipper!
    
     post_install do |installer|
    
     flipper_post_install(installer)
    
     end
    
  • 删除appDelegate.m中的flipperInit
  • 在 ios 文件夹中运行 pod install
  • 清理项目再次运行项目
© www.soinside.com 2019 - 2024. All rights reserved.