I'm trying to integrate recaptcha enterprice sdk in my ios app, built with swift. I followed the documentation mentioned here. https://cloud.google.com/recaptcha-enterprise/docs/instrument-ios-apps#swift.
I have imported the recaptcha-enterprise-mobile-sdk for ios using Swift Package Manager. the package url mentioned in the docs was https://github.com/GoogleCloudPlatform/recaptcha-enterprise-mobile-sdk.
When i try to run this block of code.
let (recaptchaClient, error) = await Recaptcha.getClient(siteKey: key)
if let recaptchaClient = recaptchaClient {
self.recaptchaClient = recaptchaClient
}
if let error = error {
print("RecaptchaClient creation error: \(error.errorMessage ?? "NIL").");
}
I'm getting these errors,
2023-04-14 12:55:20.351476+0530 Runner[2442:667659] -[RCAx_GPBTimestamp initWithTimeIntervalSince1970:]: unrecognized selector sent to instance 0x28191c000
2023-04-14 12:55:20.352389+0530 Runner[2442:667659] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCAx_GPBTimestamp initWithTimeIntervalSince1970:]: unrecognized selector sent to instance 0x28191c000'
*** First throw call stack:
(0x1cbdbba84 0x1ca20d958 0x1cbf1c110 0x1cbdd0c28 0x1cbe3470c 0x104bc3d74 0x104bbd91c 0x104bbda04 0x104b973a8 0x104a3c08c 0x104a3d8c4 0x104a44a20 0x104a45698 0x104a51158 0x218562b50 0x21856267c)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCAx_GPBTimestamp initWithTimeIntervalSince1970:]: unrecognized selector sent to instance 0x28191c000'
terminating with uncaught exception of type NSException
(Recorded stack frame)
What does this error mean? how to resolve this error?
error was thrown from this method.
Recaptcha.getClient(siteKey: key)