-
Notifications
You must be signed in to change notification settings - Fork 6
Network connection lost error (-1005) on iOS Simulator using reCAPTCHA SDK #141
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
Comments
Hi @rashidlatif55, thanks for creating the bug. Some questions so I can investigate this from my side. What's the Xcode version being used? Is this happening in a real device or just in the simulator? Is this error crashing your app and stopping you from using the SDK or is just a warning in the console log? |
I've also been seeing this on some of my simulators (but my physical device has been fine) with Xcode 16.3. I created a new simulator running iOS 18.2 and that device is working for now. But existing simulators running iOS 18.4 have this behavior. It is not a crash but it prevents the execute action request from working which means I cannot authenticate with my API. If it helps, these simulators appear to be blocking most if not all third party requests. My logs are full of similar logs for Firebase, Sentry, and Heap. I tried adding tracking details to the privacy info file but that didn't appear to help. |
Seems related to https://developer.apple.com/forums/thread/777999. |
@walterjgsp Thank you for the quick response! Here are the details you asked for: Xcode version: 16.3 Simulator version: 18.4 Device: The issue only occurs on the Simulator (18.4); it works fine on a real device. I also downloaded the iOS 18.3 simulator, and the SDK works correctly there, no errors in the console and everything functions as expected. The error does not crash the app, but it prevents authentication from completing, so the SDK is effectively unusable on the 18.4 simulator due to this issue. Let me know if I can provide any additional info or logs to help with debugging. Thanks again for looking into this! |
I have the same problem with the same version |
More info here: firebase/firebase-ios-sdk#14728 |
The problem is definitely on the 18.4 simulator. So far I haven't seen issues with Xcode 16.4 RC running on 18.5 simulator. |
I'm integrating the reCAPTCHA Enterprise Mobile SDK into my iOS app. When running on the iOS Simulator, I consistently receive the error:
Full log:
What I’ve tried:
Verified my internet connection (working fine)
Switched between multiple networks (Wi-Fi / hotspot)
Tested using the official demo project from: https://github.com/GoogleCloudPlatform/recaptcha-enterprise-mobile-sdk/tree/main/examples/ios/basic
Would appreciate any guidance or workarounds on this. Happy to help debug further or provide test logs.
The text was updated successfully, but these errors were encountered: