williamFalcon / SwiftTryCatch

Adds try-catch support for Swift
MIT License
140 stars 58 forks source link

Support osx and tvos #9

Closed rudedogg closed 6 years ago

rudedogg commented 8 years ago

The podfile only allows for ios installations, but there doesn't seem to be any platform specific code. Can we open it up to osx and tvos?

kengruven commented 8 years ago

In the "ravero" fork: ravero/SwiftTryCatch#1.

williamFalcon commented 6 years ago

Hi kengruven. Cool fix, mind doing a pr so this repo also gets those fixes? Thanks!

kengruven commented 6 years ago

Sorry, I don't use this library any more. I go to great lengths to avoid anything that might throw an exception, and in cases where it's unavoidable I just let it crash. To help, I've filed lots of bugs against Cocoa APIs to request non-exception-throwing variants.

It's come to my attention that (despite what the documentation actually says) allowing an exception to touch a Swift stack frame at all is undefined behavior. You can reference radar#37511449 if you want to harass Apple about clarification.