react-native - React Native Pod安装错误: NoMethodError - undefined method `framework?' for nil:NilClass

标签 react-native cocoapods

我在“pod install”中不断收到此错误,而 pod 文件与上次成功安装后相同!我已经被这个问题困扰好几天了。

NoMethodError - 未定义的方法框架?'对于 nil:NilClass /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/target.rb:112:inbuild_as_framework?' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in verify_no_duplicate_framework_and_library_names' 中的 block (3 级) /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in选择' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:53:in verify_no_duplicate_framework_and_library_names' 中的 block (2 级) /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:48:ineach_key' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:48:in verify_no_duplicate_framework_and_library_names 中的 block /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:47:ineach' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:47:in verify_no_duplicate_framework_and_library_names' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer/xcode/target_validator.rb:37:in验证!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:590:in validate_targets' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/installer.rb:158:in安装!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command/install.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in运行' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in' /usr/local/bin/pod:23:in 加载' /usr/local/bin/pod:23:in'


――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

最佳答案

您可以删除 Pods/* 、 Podfile.lock 并重试

关于react-native - React Native Pod安装错误: NoMethodError - undefined method `framework?' for nil:NilClass,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61867738/

相关文章:

ios - 由于 Cocoapods,Unity 无法使用 firebase 分析编译项目

cocoapods - Xcode 中 Pods.debug.xcconfig 的路径不正确?

javascript - React Native Tabbar iOS binding issue [Expected a component class, got object 对象]

css - 使用显式高度时 react native 垂直文本对齐

android - 在 Android 上使用 React Native 的图像的透明背景颜色

swift - Xcode 7-CocoaPod AlamoFire 及其他,导入到项目中但不在项目内部工作

swift - 收到错误 clang : error: linker command failed with exit code 1 (use -v to see invocation) swift

cocoapods - 使用 Cocoapods 时如何包含我自己的 xcconfigs?

ios - Lottie-react-native 不在 iOS 12 RN 0.60.4 上构建

react-native - react 导航 : Prevent multiple instances to navigate to same screen