sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.85k stars 365 forks source link

Crash when using SwiftPM #223

Open ymkim50 opened 4 years ago

ymkim50 commented 4 years ago

I recently experienced a crash.

I installed it using SwiftPM but it crashed. It's release build, not debug build.

To test this, I ran a manual / Cocoapods installation. But there was no problem. So I reinstalled with Cocoapods.

Some other libraries(e.g. Parchment) had same issue. Using generic seems to be the problem.

sunshinejr commented 4 years ago

Hey @ymkim50, thank you so much for reporting this! I wonder why generics would make it crash only when using SPM, though. What version of Swifty do you use? What Xcode/Swift version? And finally, are you able to provide some error logs from the crash maybe? Would really appreciate it.

ymkim50 commented 4 years ago

I use Swift 5.0, Xcode version is 11.2.1 and crashed only Release. Currently, I change project to using Cocoapods. I found several libraries was crashed when using SPM. I think this is not a problem with SwiftyUserDefaults, but a problem with SPM.

It's other crashed library issues: https://github.com/rechsteiner/Parchment/issues/398

ymkim50 commented 4 years ago

Please refer to the following link: https://bugs.swift.org/browse/SR-11564?focusedCommentId=51285&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-51285

sunshinejr commented 4 years ago

@ymkim50 thank you so much for updating the issue! Really appreciate it.