SwiftyUserDefaults icon indicating copy to clipboard operation
SwiftyUserDefaults copied to clipboard

Crash when using SwiftPM

Open ymkim50 opened this issue 5 years ago • 4 comments

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.

ymkim50 avatar Nov 13 '19 19:11 ymkim50

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.

sunshinejr avatar Nov 18 '19 13:11 sunshinejr

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 avatar Nov 19 '19 16:11 ymkim50

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

ymkim50 avatar Nov 21 '19 07:11 ymkim50

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

sunshinejr avatar Nov 22 '19 14:11 sunshinejr