yoomoney / yookassa-payments-swift

This library allows implementing payment acceptance into mobile apps on iOS and works as an extension to the YooMoney API
https://yookassa.ru/developers
MIT License
41 stars 41 forks source link

Ошибки FunctionalSwift и MoneyAuth #127

Closed kuznetsov-from-wonderland closed 2 years ago

kuznetsov-from-wonderland commented 2 years ago
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/yoomoney-tech/cocoa-pod-specs.git'
plugin 'cocoapods-user-defined-build-types'
enable_user_defined_build_types!

platform :ios, '13.0'

  pod 'YooKassaPayments',
    :build_type => :dynamic_framework,
    :git => 'https://github.com/yoomoney/yookassa-payments-swift.git',
    :tag => '5.4.1'

swift --version
swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: arm64-apple-macosx12.0

XCode 13.1

Случается ошибка


Showing Recent Errors Only
......./ios/Pods/YooKassaPayments/YooKassaPayments/Private/Services/Authorization/AuthorizationServiceAssembly.swift:1:8: Failed to build module 'MoneyAuth'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)', while this compiler is 'Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)'). Please select a toolchain which matches the SDK.

CleanShot 2022-02-11 at 14 33 25

kuznetsov-from-wonderland commented 2 years ago

@starxor Посмотри, пожалуйста?

kuznetsov-from-wonderland commented 2 years ago

Хотелось бы остаться на 5й версии, прямо сейчас нет возможности обновиться

kuznetsov-from-wonderland commented 2 years ago

Возможно относится к той же проблеме? После pod install случаются warnings CleanShot 2022-02-11 at 14 47 28

kuznetsov-from-wonderland commented 2 years ago

Еще больше деталей( CleanShot 2022-02-11 at 15 03 48 В Podfile.lock установилась версия - FunctionalSwift (1.2.0)

Может стоит припинить другую версию?

starxor commented 2 years ago

Вероятно ошибку для FunctionalSwift получится убрать изменением версии. Похоже что более серьёзная проблема это вот эта ошибка Failed to build module 'MoneyAuth'; this SDK is not supported by the compiler (the SDK is built with 'Ap..

Вероятность того что сможем что-то сделать чтобы версия 5.4.1 собиралась в Xcode 13 довольно мала.