evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

Debug does not work after added with SPM #138

Open edias opened 3 years ago

edias commented 3 years ago

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.

evgenyneu commented 3 years ago

@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 3 years ago

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

evgenyneu commented 3 years ago

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 3 years ago

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.

evgenyneu commented 3 years ago

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

bezigon commented 3 years ago

@edias quick question, do you have GoogleAPIClientForREST in dependencies? Maybe related to https://github.com/google/google-api-objectivec-client-for-rest/issues/478