I add Firebase analytics using coocapods, my subfile
platform :ios, '8.0'
use_frameworks!
workspace 'ProjectWorkspace.xcworkspace'
abstract_target 'Shows' do
pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf.git', :tag => '0.9.24'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
target 'HostApp' do
project 'HostAppFolder/HostApp.xcodeproj'
end
target 'HostAppReleaseTarget' do
project 'HostAppFolderApp/HostApp.xcodeproj'
end
target 'FrameWorkProject' do
project 'FrameworkProjectFolder/FrameWorkProject.xcodeproj'
end
end
if I add SwiftProtobuf only as a dependency, it works great for the host application as well as for the Framework project.
If I add a Firebase dependency, I get a runtime error and the application crashes with the msg error message
The Foo class is implemented in both HostApplicationPath and FrameworkProjectPath. One of the two will be used. Which one is undefined.
for each file of the Firebase class.
when I remove other $ linker frames (inherited) from the framework project, it works fine, but I cannot use firebase in my framework project.
My framework and host application are written in Swfit 3.0, and the xcode version is 8.x
"EVAWorkspace.xcworkspace" -- , cocoapods .

Eva - , EvaApp - -.