1

iOS で Firebase を使用していますが、GeoFire を追加したいと考えています。https://github.com/firebase/geofire-objcの指示に従っていますが、ポッド 'GeoFire', '>=1.1' をポッドファイルに追加して更新すると、エラーが発生します

$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `Firebase (~> 2.1)` required by `GeoFire (1.1.0)`

Specs satisfying the `Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target.

私のポッドファイルは次のようになります

use_frameworks!
platform :ios, '8.1'

pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'Firebase/AdMob'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/RemoteConfig'

pod 'GeoFire', '>=1.1'

target 'FriendlyChatSwift' do
end

ここで何が起こっているのかわかりません。

4

2 に答える 2

2

次の手順を順番に実行してください。そのうちの 1 つが問題を解決するはずです。

  1. Cocoapods を最新リリース (1.0.1) に更新します。

  2. プロジェクト podfile で、pod 'GeoFire', '>=1.1' 行を削除します。

  3. ターミナルで、プロジェクトがあるフォルダーに移動して実行します。

    ポッドの更新

  4. Podfile に戻り、次のように GeoFire を追加します。

    pod 'GeoFire', :git => ' https://github.com/firebase/geofire-objc.git '

  5. ターミナルで、プロジェクトがあるフォルダーに移動して実行します。

    ポッドのインストール

  6. 念のため、インストール後にポッドの更新を再度実行します(BLACK MAGIC?)

  7. 通常は完了して問題ありませんが、現在大きなバグがありますが、幸いにも何時間も経った後、コミュニティは修正を見つけました。XCode Project ナビゲーターで Pods -> Pods -> Firebase Database -> Frameworks -> SELECT/ に移動します。ハイライト FirebaseDatabase.framework

  8. FirebaseDatabase.framework を選択/強調表示した後、File Inspector (一番右の紙のアイコン) を見て、[Target Membership] の下の [GeoFire] を選択/チェックマークを付けます。

手順 7/8 のスクリーンショットへのリンクは次のとおりです

最後に、GitHub のプロジェクトの「Issues」セクションを確認してください。これは優れたリソースであり、今後解決策が見つかる可能性があります。

于 2016-07-22T21:47:30.550 に答える
0

使用しているココアポッドのバージョンは何ですか? 彼らは最近 1.0 をリリースしました。あなたはそれを試してみたいかもしれません。

また、最新の geofire podspec ファイルは次のとおりです。

Pod::Spec.new do |s|
  s.name         = "GeoFire"
  s.version      = "1.1.2"
  s.summary      = "Realtime location queries with Firebase."
  s.homepage     = "https://github.com/firebase/geofire-objc"
  s.license      = { :type => 'MIT', :file => 'LICENSE' }
  s.author       = { "Firebase" => "support@firebase.com" }
  s.source       = { :git => "https://github.com/firebase/geofire-objc.git", :tag => 'v1.1.2' }
  s.source_files = "GeoFire/**/*.{h,m}"
  s.docset_url   = "https://geofire-ios.firebaseapp.com/docs/"
  s.ios.deployment_target = '7.0'
  s.osx.deployment_target = '10.10'
  s.ios.dependency  'Firebase', '~> 2.2'
  s.osx.dependency  'FirebaseOSX', '~> 2.4'
  s.framework = 'CoreLocation'
  s.requires_arc = true
end

podfile で geofire 1.1.x をプルしてみてください。

于 2016-05-27T20:14:02.220 に答える