frida / frida-swift-bridge

Frida's finally getting Swifty
Apache License 2.0
126 stars 15 forks source link

Add Swift version requirement #2

Closed karolpiateknet closed 3 years ago

karolpiateknet commented 3 years ago

Hi 👋 ,

Thanks for great tool 👏 While I was using it I saw that bridge works only for apps with Swift 5.0+. I believe it is due to missing function swift_stdlib_getTypeByMangledNameUntrusted inside previous versions of libswiftCore.dylib. Which results in throwing error inside https://github.com/frida/frida-swift-bridge/blob/master/lib/api.ts

hot3eed commented 3 years ago

Thanks! Do you happen to have an app that uses Swift pre-5.0 handy? Just wanted to test whether Swift.available returns false as expected in that case.

karolpiateknet commented 3 years ago

I see that DVIA-v2 is still Swift 4.0 version: https://github.com/prateek147/DVIA-v2/blob/master/DVIA-v2-swift.ipa

hot3eed commented 3 years ago

Just tested and it works as expected, I've re-phrased the README diff a little bit and will merge now.