我正在尝试减少 cloud_firestore 应用程序的编译时间,但我似乎无法运行 pod install。我运行一台相对较旧的 MacBook Air 来编译我的 iOS 版本,目前构建需要 30 多分钟。你可以看到它是多么没有生产力。
我收到以下错误:
[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
In Podfile:
FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `8.15.0`)
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 4.13.2, which depends on
Firebase/Firestore (= 10.18.0) was resolved to 10.18.0, which depends on
FirebaseFirestore (~> 10.18.0)
这是我的 Podfile 的一部分:
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.15.0'
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
这是我的 pubspec:
environment:
sdk: '>=3.2.0 <4.0.0'
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
shared_preferences: ^2.0.20
provider: ^6.0.5
numberpicker: ^2.1.1
flutter_local_notifications: ^16.1.0
notification_permissions: ^0.6.1
configurable_expansion_tile_null_safety: 3.3.1
firebase_core: ^2.22.0
firebase_auth: ^4.13.0
firebase_dynamic_links: ^5.4.4
cloud_firestore: ^4.13.2
firebase_analytics: ^10.6.4
firebase_app_check: ^0.2.1+4
path_provider: ^2.0.14
xml: ^6.3.0
photo_view: ^0.14.0
google_sign_in: ^6.0.2
googleapis_auth: ^1.4.0
googleapis: ^11.4.0
package_info_plus: ^5.0.1
devicelocale: 0.7.0
flutter_email_sender: ^6.0.2
url_launcher: ^6.1.12
connectivity_plus: ^5.0.1
auto_size_text: 3.0.0
purchases_flutter: 6.3.0
modal_progress_hud_alt: 1.0.0
intl: ^0.18.0 #0.17.0
flutter_localizations:
sdk: flutter
我已经厌倦了进行 flutter cleans 和 pod repo 更新以及安装,但两天都没有成功。
我正在运行 Flutter 3.16.0、Xcode 15.0.1、Sonoma 14.1.1、cocoapods 1.14.3
也就是说,我真的很感谢任何帮助。
您可以尝试删除
Podfile.lock
和 Pods folder
然后运行 pod install
命令