Модуль Moya совместим с tvOS, как вы можете видеть в его .podspec файле :
s.tvos.deployment_target = '9.0'
Я попытался запустить проект с вашей конфигурацией .podspec, и у меня было несколькопроблемы с устаревшей зависимостью Moya
sub "Result", "~> 3.0"
. Однако в последнем выпуске эта зависимость была обновлена до "Result", "~> 4.1"
, и я смог успешно запустить Moya на iOS 9.0.
Попробуйте использовать самый последний выпуск:
def shared_pods
pod 'Moya', '13.0.1' #Alamofire wrapper
pod 'AlamofireNetworkActivityLogger', '~> 2.0'
pod 'AlamofireObjectMapper'
pod 'ReachabilitySwift', '~> 4.0'
pod 'SDWebImage', '~> 4.4.5'
end
Редактировать
Однако, как вы упомянули при редактировании, все ваши зависимости от других модулей не совместимы с tvOS:
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `DynamicCodable (1.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `Stripe (15.0.1)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `GooglePlacesSearchController (0.2.1)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `Google-Mobile-Ads-SDK (7.41.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `NTMonthYearPicker (1.0.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `FLAnimatedImage (1.0.12)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `NYTPhotoViewer (1.1.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `MGSwipeTableCell (1.6.9)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `SendBirdSDK (3.0.154)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `RSKImageCropper (2.2.3)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `ActiveLabel (1.0.1)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `FSCalendar (2.8.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `GooglePlaces (3.5.0)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `CreditCardValidator (0.4)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `FittedSheets (1.4.5)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `Branch (0.29.1)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `CarbonKit (2.3.1)`, which does not support `tvOS`.
[!] The platform of the target `tvApp` (tvOS 9.0) is not compatible with `AWSS3 (2.12.0)`, which does not support `tvOS`.
Чтобы проверить совместимость, вы можете открыть репозиторий модуля и проверитьфайл .podspec
. Например, Stripe .podspec не имеет tvos.deployment_target
.
. Вы не можете использовать фреймворки, несовместимые с целью проекта.