React native ios RNFirebase dependency Analysis Error.无法运行命令'Libtool libRNFirebase.a' - 此目标可能包含自己的



我是 React 原生开发的新手,但是我遇到了打击错误

Unable to run command 'Libtool libRNFirebase.a' - this target might include its own product.

这是我的 podfile

target 'TheClub' do
.....
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'

pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'
target 'TheClubTests' do
inherit! :search_paths
end
end
target 'TheClub-tvOS' do
target 'TheClub-tvOSTests' do
inherit! :search_paths
end
end

我已经将我的RNFirebase.xcodeproj文件包含在库文件夹中

我也确保,一个文件 libRNFirebase.a 在"与库的链接二进制文件"中

求求你,帮我出来吧。

提前谢谢。

我得到了一个解决方案,

需要更换

pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'

pod 'Firebase', '~> 5.9.0'
pod 'Firebase/Core', '~> 5.9.0'
pod 'Firebase/Auth', '~> 5.9.0'
pod 'Firebase/Messaging', '~> 5.9.0'
pod 'Firebase/Database', '~> 5.9.0'
pod 'Firebase/Firestore', '~> 5.9.0'

感谢"阮德晃",真的是一个不错的视频。 https://www.youtube.com/watch?v=iEpmEAlUhmc

快乐编码

最新更新