Cannot conform to STPAddCardViewControllerDelegate since Xcode 8 GM on Swift 3

前端 未结 1 1644
深忆病人
深忆病人 2020-12-22 08:42

Since converting my codebase to swift 3 with Xcode 8 GM, I get this error when trying to conform to the STPAddCardViewControllerDelegate (Stripe SDK). I\'m very

相关标签:
1条回答
  • 2020-12-22 09:16

    After a bit of investigation from @AliSoftware and @bdorfman in the related Stripe SDK issue, it's been found that adding the @escaping attribute to the completion param fixes the issue.

    It seems to be a compiler & stubbing issue on swift's end, that is currently tracked here: https://bugs.swift.org/browse/SR-2596.

    0 讨论(0)
提交回复
热议问题