Can not display local variable at breakpoints

Our project is currently unable to display local variable values at breakpoints. Here is a screenshot of the actual result.

I saw similar posts: https://developer.apple.com/forums/thread/23264

https://stackoverflow.com/questions/28497533/po-gives-error-expr11-error-use-of-unresolved-identifier

Although I checked ever single answer and my problem is still there. Most of the answers revolve around setting -Onone optimization level, whic we already had.

I believe it has nothing to do with optimization level but with SPM. Let me explain.

I ran a git bisect to find when we introduced the problem. Turns out there is a specific commit that causes the issue and the only thing it does is adding Auth0 library to our project via SPM.

Prior to that commit, debug was working as expected. After that commit, it does not work anymore. I tried removing that specific dependency from our project and cleaning SPM caches but it didn't fix the issue.

Any ideas?

Thank you.

Any ideas?

Not really )-: but I’d really appreciate you putting your findings into a bug report. Please post your bug number, just for the record

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
The problem was with one of our external dependencies and SPM. When moving all of them back to cocoapods, the problem disappears.

In case anyone wants to replicate, this is a list of dependencies. The ones at the bottom are the ones we moved to SPM and the problem started.

Code Block ruby
pod 'Amplitude-iOS'
pod 'AppsFlyerFramework'
pod 'Appboy-iOS-SDK/Core'
pod 'ZendeskSupportSDK'
pod 'ZendeskAnswerBotSDK'
pod 'SDWebImage'
pod 'SnapSDK/SCSDKCreativeKit'
pod 'AWSCore', :git => 'https://github.com/onuniverse/aws-sdk-ios.git', :branch => 'catalyst'
pod 'AWSS3', :git => 'https://github.com/onuniverse/aws-sdk-ios.git', :branch => 'catalyst'
We tried moving the following pods to SPM but it broke the console (printing any property from a breakpoint was not possible)
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'AppCenter'
pod 'Auth0', '~> 1.32'
pod 'KeychainAccess'

Can not display local variable at breakpoints
 
 
Q