Ошибка в моем POD при импорте GoogleMLKit/TextRecognitionIOS

Программируем под IOS
Ответить
Anonymous
 Ошибка в моем POD при импорте GoogleMLKit/TextRecognition

Сообщение Anonymous »

При попытке добавить MLKit я получаю следующую ошибку. Я даже пытался использовать Firebase, но это тоже не удалось, аналогичная ошибка.
Это то, чему я пытаюсь следовать:
https: //developers.google.com/ml-kit/vision/text-recognition/ios
Вот что находится в моем файле pod:
pod 'MaterialComponents/ActivityIndicator'
pod 'MaterialComponents/Chips'
pod 'Google-Mobile-Ads-SDK'
pod 'IQKeyboardManagerSwift'
pod 'Alamofire'
pod 'SwiftyJSON'
pod "SearchTextField"
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'Firebase/Analytics'
pod 'Toast-Swift', '~> 5.0.1'
pod 'GoogleMLKit/TextRecognition','2.2.0'

Наконец, вот ошибка, которую я получаю:
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In snapshot (Podfile.lock):
GTMSessionFetcher/Core (< 4.0, = 3.1.0, >= 2.1)

In Podfile:
GoogleMLKit/TextRecognition (= 2.2.0) was resolved to 2.2.0, which depends on
MLKitTextRecognition (~> 1.3.0) was resolved to 1.3.0, which depends on
MLKitVision (~> 1.3) was resolved to 1.3.0, which depends on
GTMSessionFetcher/Core (~> 1.1)

Specs satisfying the `GTMSessionFetcher/Core (< 4.0, = 3.1.0, >= 2.1), GTMSessionFetcher/Core (~> 1.1)` dependency were found, but they required a higher minimum deployment target.

Что мне сделать, чтобы решить эту проблему?
Обновить
Я нашел это: https:/ /issuetracker.google.com/issues/254418199
У меня это тоже не сработало:
Fetching podspec for `MLKitCommon` from `MLKitCommon.podspec.json`
Fetching podspec for `MLKitVision` from `MLKitVision.podspec.json`
[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In snapshot (Podfile.lock):
GTMSessionFetcher/Core (< 4.0, = 3.1.0, >= 2.1)

In Podfile:
MLKitVision (from `MLKitVision.podspec.json`) was resolved to 4.2.0, which depends on
GTMSessionFetcher/Core (~> 2.1)

Specs satisfying the `GTMSessionFetcher/Core (< 4.0, = 3.1.0, >= 2.1), GTMSessionFetcher/Core (~> 2.1)` dependency were found, but they required a higher minimum deployment target.


Подробнее здесь: https://stackoverflow.com/questions/758 ... ecognition
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»