limneos / classdump-dyld

Class-dump any Mach-o file without extracting it from dyld_shared_cache
586 stars 99 forks source link

xcode 9.4.1(ios 11.4 sdk) build error: call to unavailable function 'system': not available on iOS 11.4 sdk #19

Open holyswordman opened 6 years ago

holyswordman commented 6 years ago

My-Mac:classdump-dyld user123$ make

Making all for tool classdump-dyld… ==> Preprocessing main.xm… ==> Compiling main.xm (armv7)… main.xm:313:4: error: call to unavailable function 'system': not available on iOS system([tryWithLib UTF8String]); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/usr/include/stdlib.h:195:6: note: candidate function has been explicitly made unavailable int system(const char *) __DARWIN_ALIAS_C(system); ^ 1 error generated.* make[3]: [/Users/user123/Documents/classdump-dyld/.theos/obj/debug/armv7/main.xm.5c0a3bf6.o] Error 1 make[2]: [/Users/user123/Documents/classdump-dyld/.theos/obj/debug/armv7/classdump-dyld] Error 2 make[1]: [internal-tool-all_] Error 2 make: *** [classdump-dyld.all.tool.variables] Error 2 My-Mac:classdump-dyld user123$

Inc0n commented 6 years ago

use posix_spawn instead