title: Firebase Analytics with iOS framework development project
body: <p>I am adding Firebase analytics using coocapods, my Podfile is</p>
  
  <pre><code>platform :ios, '8.0'
  use_frameworks!
  
  workspace 'ProjectWorkspace.xcworkspace'
  
  abstract_target 'Shows' do
      pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf.git', :tag =&gt; '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
  </code></pre>
  
  <p>if I add SwiftProtobuf only as dependency it's working fine for host application as well as for Framework project. </p>
  
  <p>If I add Firebase dependency, I get a run-time error and the application crashes with error msg </p>
  
  <blockquote>
    <p>Class Foo is implemented in both, HostApplicationPath and FrameworkProjectPath One of the two will be used. Which one is undefined.</p>
  </blockquote>
  
  <p>for each class file of Firebase.</p>
  
  <p>when I remove other linker flags $(inherited) from framework project, it's work fine, but I can not use firebase into my framework project.</p>
  
  <p>My framework and Host application is written in Swfit 3.0 and xcode version is 8.x</p>
  
  <p>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.</p>
  
  <p><a href="https://i.stack.imgur.com/lxDrO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lxDrO.png" alt="Project structure "></a></p>
  
  <p>Eva is framework project and EvaApp is host application project.</p>