Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method 'isEqual(to:)' with Objective-C selector 'isEqualTo:' conflicts with method 'isEqual(to:)' from superclass 'NSObject' #1822

Closed
Boobesh opened this issue Jun 16, 2021 · 3 comments
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@Boobesh
Copy link

Boobesh commented Jun 16, 2021

Summary

I get a compilation error while building my project that integrated with Stripe SDK via SPM. Getting this error on STPToken.swift file and STPToken class in this function. L.No. 73

@objc func isEqual(to object: STPToken?) -> Bool

Method 'isEqual(to:)' with Objective-C selector 'isEqualTo:' conflicts with method 'isEqual(to:)' from superclass 'NSObject' with the same Objective-C selector

image

Code to reproduce

Stripe SDK integrated into a Mac Catalyst Project via SPM on Xcode 13 and macOS 12.

I have tried to build on both iOS and macOS still got the same error.

It works fine in Xcode 12.5

iOS version

macOS 12.0 Beta 1 (21A5248p)
iOS 15 Beta 1

Installation method

SPM

SDK version

21.5.0
21.5.1
21.6.0

First I got this error in 21.5.0 So I moved to the next version (21.5.1) and tried but not worked so moved to the very latest version 21.6.0 in the latest version also issue persists.

Other information

It works fine in Xcode 12.5

@davidme-stripe
Copy link
Contributor

Thanks for filing this! We'll fix this and other Xcode 13 errors and warnings in the next update. If you need a workaround for now, you can delete @objc from the referenced @objc func isEqual line.

@davidme-stripe davidme-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label Jun 16, 2021
@Boobesh
Copy link
Author

Boobesh commented Jun 21, 2021

@davidme-stripe We're using it as an SPM so can't edit the file.. It will be nice if you guys plan and release the next update as soon as possible.

@davidme-stripe
Copy link
Contributor

We fixed this in version 21.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

2 participants