evgenyneu/keychain-swift

Debug does not work after added with SPM

edias opened this issue · 6 comments

edias commented

When I add the library through SPM, for some reason I can not debug the project anymore. No debug variables are available and even PO does not work. I also tested adding other libraries to eliminate the bias of SPM issues. The problem only takes place with this library.

Here my setup:

* Swift Package Manager.
* Keychain version: 2.0.1
* Xcode version: 12.1
* OS version:  iOS 14.1

Any help will be welcome.

@edias thanks for reporting the issue. By debugging, do you mean that you can no longer use breakpoints and inspect the variables in Xcode? Also, do you mean debugging your application code, or do you want to debug KeychainSwift library code?

edias commented

@evgenyneu. I mean debug my own App, put breakpoints and inspect variables.

I just tested it by creating a new project and could not reproduce this issue in Xcode 12.2 on Catalina. I placed a breakpoint, it stopped there and I was able to observe the value of a variable. Let me know if it works for you.

Code: DemoKeychain.zip

Screencapture: https://drive.google.com/file/d/1ApMIW2WWmJ1QU9kWhz1FOyVBwfDwsLZK/view?usp=sharing

edias commented

I just tested with Xcode 12.1 in a fresh test project and in fact it works. However, on my real project it does not. Other libraries works pretty fine. I have no idea what might be causing this issue.

That's weird, maybe someone will comment here if they found a solution.

@edias quick question, do you have GoogleAPIClientForREST in dependencies?
Maybe related to google/google-api-objectivec-client-for-rest#478