-
Notifications
You must be signed in to change notification settings - Fork 247
Description
Describe the bug
We are seeing issues in lldb related to GTMSessionFetcher since updating to 7.1.0, where it complains it cannot import GTMSessionFetcher any time we try to po a value from our code in the debugger — which is obviously very bad news.
I'm far from an expert on this but in our case the problem "goes away" if we change the conditional import in GIDGoogleUser.h
| #ifdef SWIFT_PACKAGE |
@import modular import variant.
Why this is suddenly a problem - as this has been in the GoogleSignIn code for a while – is not clear. We relatively recently (months back) added one SPM package to our app. The rest are all Cocoapods, including GSI and its dependencies. Perhaps this has triggered the problem, but we certainly only noticed it recently when switching from 7.0.0 to 7.1.0.
The clear implication is that SWIFT_PACKAGE is now defined for our builds where it wasn't previously, but this is breaking lldb for some reason, perhaps because GSI is still built with Cocoapods, not SPM?
To Reproduce
Sorry, we don't know.
Expected behavior
We should not have any issues using the debugger, least of all complaints about failure of lldb to import GTMSessionFetcher.
Screenshots
Environment
- Browser: Xcode 15.2 / Xcode 15.3
Additional context