I'm trying to install 'Google/Analytics' inside my lib project in podspec.
My project lib was created using pod lib create with Swift.
This is my podspec:
s.source_files = 'Pod/Classes/**/*' s.resource_bundles = { 'LibPSLoginResources' => ['Pod/Resources/**/*.{xib,png,json}'] } s.dependency 'FBSDKCoreKit' s.dependency 'FBSDKLoginKit' s.dependency 'Google/Analytics' s.dependency 'Firebase/Auth' s.dependency 'Firebase/Core' s.dependency 'Firebase/Database'
My PodFile:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' inhibit_all_warnings! use_frameworks! target 'LibPSLogin_Example' do pod 'LibPSLogin', :path => '../' target 'LibPSLogin_Tests' do inherit! :search_paths end end
But when always run pod install I get this: target has transitive dependencies that include static binaries: (/Users/macpr/Documents/Projects/iOS/LibPSLogin/Example/Pods/Google/Libraries/libGGLAnalytics.a and /Users/macpr/Documents/Projects/iOS/LibPSLogin/Example/Pods/Google/Libraries/libGGLCore.a)
I already try to put this code inside my PodFile, but the Google Analytics can't be imported by .swift file.
pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end
As far as I know, the library project can't import static library. But what can I do to solve this problem? Can anyone help me?
Thanks