2016-05-21 15 views
20

Tôi đang cố gắng cài đặt Firebase/Database như tài liệu Firebase https://firebase.google.com/docs/ios/setup#available_pods nhưng khi tôi cố gắng gặp sự cố.Cài đặt nhóm Firebase - pod 'Firebase/Cơ sở dữ liệu' - Yêu cầu mục tiêu triển khai tối thiểu cao hơn

[!] Unable to satisfy the following requirements: 
  • Firebase/Database theo yêu cầu của Podfile

    Specs đáp ứng Firebase/Database phụ thuộc đã được tìm thấy, nhưng họ đòi hỏi một mục tiêu triển khai tối thiểu cao hơn.

buộc một mục tiêu triển khai tối thiểu cao hơn, làm thế nào tôi có thể làm điều này?

Cảm ơn

Screenshot

+0

bạn đã tạo Podfile chưa? –

+0

Có. nó được tạo ra! –

Trả lời

23

Đây là cách tôi cố định nó.

Bước 1

Cài đặt thông thường căn cứ hỏa lực - pod 'Firebase', '>= 2.5.1'

Bước 2

Update - pod update

* Tại thời điểm này nó sẽ mất một vài phút tốt để cập nhật. Bạn sẽ thấy một cái gì đó như thế này.

Update all pods 
Updating local specs repositories 
Analyzing dependencies 
Downloading dependencies 
Installing Firebase 3.2.0 (was 3.2.0) 
Using FirebaseAnalytics (3.2.0) 
Installing FirebaseAuth (3.0.2) 
Using FirebaseDatabase (3.0.1) 
Using FirebaseInstanceID (1.0.6) 
Using GoogleInterchangeUtilities (1.2.1) 
Installing GoogleNetworkingUtilities (1.2.1) 
Using GoogleSymbolUtilities (1.1.1) 
Using GoogleUtilities (1.3.1) 
Generating Pods project 
Integrating client project 
Sending stats 
Pod installation complete! There are 4 dependencies from the Podfile and 10 
total pods installed. 

Bước 3

Bây giờ bạn nên có căn cứ hỏa lực 3. Vì vậy, bạn có thể thêm các khuôn khổ như vậy trong tập tin pod của bạn sau đó pod update

# Uncomment this line to define a global platform for your project 
platform :ios, '8.0' 
# Uncomment this line if you're using Swift 
use_frameworks! 

target 'xMarket' do 

end 

target 'xMarketTests' do 

end 

target 'xMarketUITests' do 

end 

pod 'Firebase', '>= 2.5.1' 
pod ‘Firebase/Core’ 
pod ‘Firebase/Database’ 
pod ‘Firebase/Auth’ 

Chúc may mắn!

+2

Đối với tôi đầu tiên cài đặt căn cứ hỏa lực pod 'căn cứ hỏa lực' Sau đó làm một "cập nhật pod" Sau đó thêm pod 'căn cứ hỏa lực/xxxxx' – tanutapi

+0

Cảm ơn một người đàn ông tấn! – iUser

2

Trong số Podfile, thay đổi dòng pod 'Firebase' thành pod Firebase/Core và chạy pod update trong thư mục dự án.

Với Firebase mới, không cần dòng đầu tiên.

Từ hướng dẫn chuyển đổi:

migration

tham khảo: Firebase.google migration guide

-1

Làm theo các bước này:

  1. pod repo remove chủ
  2. thiết lập pod
  3. pod cài đặt
0

Tôi đã gặp vấn đề tương tự.lỗi của tôi dưới đây

[!] Unable to satisfy the following requirements: 

- `Firebase/AdMob` required by `Podfile` 

Specs satisfying the `Firebase/AdMob` dependency were found, but they required a higher minimum deployment target. 

enter image description here Targets->general->deployment target Changed to 8.0 enter image description here

triển khai của tôi mục tiêu dự án bắt đầu từ ios 6 Kể từ khi nó được phát triển trong xcode cũ version.For updation mới trong xcode 8 tôi đã deployment target from ios 8 Nó hoạt động từ tôi.

Sau khi sửa chữa làm việc của nó

Installing Firebase (4.0.2) Installing FirebaseAnalytics (4.0.1) Installing FirebaseCore (4.0.2) Installing FirebaseInstanceID (2.0.0) Installing Google-Mobile-Ads-SDK (7.20.0) Installing GoogleToolboxForMac (2.1.1)

Mới nhất căn cứ hỏa lực sẽ hỗ trợ từ ios 8.

-1

hoặc bạn có thể cập nhật các Podfile nền tảng

: ios, '9.0'

chạy 'pod update'

rằng wo

Các vấn đề liên quan