我已经构建了一个反应本机应用程序,今天在运行命令期间突然在终端上收到此错误消息
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 ../
请帮忙
您可以采取一些解决方法:
在ios文件夹中
在podfile中注释flipper函数;
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end