I am adding Firebase analytics using coocapods, my Podfile is
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 dependency it's working fine for host application as well as for Framework project.
If I add Firebase dependency, I get a run-time error and the application crashes with error msg
Class Foo is implemented in both, HostApplicationPath and FrameworkProjectPath One of the two will be used. Which one is undefined.
for each class file of Firebase.
when I remove other linker flags $(inherited) from framework project, it's work fine, but I can not use firebase into my framework project.
My framework and Host application is written in Swfit 3.0 and xcode version is 8.x
My Project structure is i have created a workspace manually and named it "EVAWorkspace.xcworkspace" and added my host application and framework project into this workspace and then i am adding cocoapods to workspace.
Eva is framework project and EvaApp is host application project.