Closed MagicFlow29 closed 1 month ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @MagicFlow29 ,
I tested iOS 18 on Xcode simulator with latest version of Xcode and Firebase SDK. The app connects to backend successfully. Could you please upgrade the Xcode and SDK, and check the Internet connection on your device or/and simulator? Please let me know if you are still running into problems.
Hi and thankyou for your response. Both XCODE and the SDK were / have been updated to the latest. The internet connection is available also. Please note, a build to a 17.5 device on the same code base work perfectly fine. I'm not sure what else to try. This is a production app, and the same code base simply won't connect to Firestore or any other services on iOS 18.0 devices.
App Check was configured but not enforced on the server side... so this isn't it either.
Hi @MagicFlow29 ,
Could you please enable debug logging and share it with us? Also can you create a simple repo app to see if the problem also exists in the new app?
Hi and thankyou @cherylEnkidu please see logs below. *In the process of creating a fresh / new app to compare.
1.2.0 - [FirebaseCore][I-COR000001] Configuring the default app.
11.2.0 - [FirebaseCore][I-COR000033] Data Collection flag is not set.
11.2.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
11.2.0 - [FirebaseAnalytics][I-ACS024000] Debug mode is on
11.2.0 - [GULReachability][I-REA902003] Monitoring the network status
11.2.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.11.2.0 started
11.2.0 - [FirebaseAnalytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
11.2.0 - [FirebaseAnalytics][I-ACS023009] Debug logging enabled
11.2.0 - [FirebaseAnalytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see http://goo.gl/RfcP7r)
11.2.0 - [GULReachability][I-REA902003] Monitoring the network status
11.2.0 - [FirebaseAnalytics][I-ACS044003] GoogleAppMeasurementIdentitySupport dependency is not currently linked. IDFA will not be accessible.
11.2.0 - [FirebaseAnalytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 9.999984979629517
11.2.0 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
11.2.0 - [FirebaseAnalytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
11.2.0 - [FirebaseAnalytics][I-ACS023016] Analytics is ready to receive events
11.2.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: ga_session_id (_sid), 1726774216
11.2.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: ga_session_number (_sno), 6
11.2.0 - [FirebaseAnalytics][I-ACS023051] Logging event: origin, name, params: auto, session_start (_s), {
ga_event_origin (_o) = auto;
session_id (_sid) = 1726774216;
session_number (_sno) = 6;
}
11.2.0 - [FirebaseAnalytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: session_start (_s), {
ga_debug (_dbg) = 1;
ga_event_origin (_o) = auto;
ga_realtime (_r) = 1;
session_id (_sid) = 1726774216;
session_number (_sno) = 6;
}
11.2.0 - [FirebaseMessaging][I-FCM043000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
acct = "
A fresh app did in fact connect successfully. Were you able to see anything in the logs? I'll start stripping the existing / production code base down to figure out what's caused it.... but feel it could be a setting somewhere that perhaps Apple isn't upgrading on pre-Xcode 16 apps...
OK thanks for your help... realising this must be something specific to my app and not firebase, I did find that a memory leak within SwiftUI was introduced when deploying to iOS 18 devices which subsequently caused the issue with Firebase not being able to connect.
Description
App cannot connect to Firestore or other services after building to an iOS 18 target.
App does connect when deploying to iOS17.5 device.
Existing app (from app store) still connects.
This is experienced only on new builds to iOS 18 devices. The issue DOES NOT occur when deploying to an iOS 17.5 device / simulator.
11.2.0 - [FirebaseFirestore][I-FST000001] Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds. This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Reproducing the issue
Upgrade device / xcode to latest. XCODE: Version 16.0 (16A242d) DEVICE: iOS 18.0
Build app - attempt to query firestore.
Firebase SDK Version
11.20
Xcode Version
16.0
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json Replace this line with the contents of your Package.resolved. ```
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippet```yml Replace this line with the contents of your Podfile.lock! ```