podspecのlibプロジェクト内に 'Google/Analytics'をインストールしようとしています。iOS Swift Library - ターゲットに推移的な依存関係があります。Google Analytics
私のプロジェクトのlibは、swiftでpod lib createを使用して作成されました。
これは私の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'
マイ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
しかし、いつも私はこの取得インストールポッドを実行します。 ターゲットは、静的なバイナリが含ま推移依存関係を持っています(/をユーザー/ macpr /ドキュメント/プロジェクト/ iOS/LibPSLogin/Example/Pods/Google/Libraries/libGGLAnalytics.aと/Users/macpr/Documents/Projects/iOS/LibPSLogin/Example/Pods/Google/Libraries/libGGLCore.a)
私は既にこのコードをPodFileに入れようとしていますが、Google Analyticsを.swiftファイルでインポートすることはできません。
pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end
私の知る限りでは、ライブラリプロジェクトは、静的ライブラリをインポートすることはできません。しかし、この問題を解決するために私は何ができますか? 誰でも助けてくれますか?
おかげ
あなたは[GoogleReporter]しようとする場合があります(https://github.com/ksmandersen/GoogleReporter)は、iOS 9以降でGoogleアナリティクスを統合できるオープンソースの代替手段です – nathan