obfuscator-llvm / obfuscator

3.9k stars 1.17k forks source link

It's not support Objective-C '@available','API_AVAILABLE'. #103

Open heroims opened 6 years ago

heroims commented 6 years ago

When I use if (@available(iOS 10.0, *)) {},It also give me a error!

Undefined symbols for architecture x86_64: "___isOSVersionAtLeast", referenced from:

captain-black commented 6 years ago

I implement it myself.

int __isOSVersionAtLeast(int major, int minor, int patch) { NSOperatingSystemVersion version; version.majorVersion = major; version.minorVersion = minor; version.patchVersion = patch; return [[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version]; }

exorxw commented 6 years ago

llvm 5.0.1 support the new syntax