我试图找到这个问题的解决方案,但是人们给出的解决方案要么不起作用,要么他们的解释不够好让我无法理解。
在此线程中:Class is implemented in both, One of the two will be used. Which one is undefined 答案是可能存在重复的框架,但我的 Pods-[AppName].debug.xcconfig 文件只列出了一次。
在此线程中:iOS Unit Testing: Class is implemented in both我对如何做感到困惑。如果有人可以更深入地向我解释解决方案是什么,那就太好了!
任何有关此问题解决方案的其他信息将不胜感激,谢谢。
最佳答案
target 'MyApp' do
pod 'Firebase'
target 'MyAppTests' do
inherit! :search_paths
end
end
将target 'MyAppTests' do
移动到target 'MyApp' do
内并继承搜索路径对我很有帮助。
关于swift - 类在两者中都实现...将使用两者之一。定义的是哪一个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50223576/