Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 20, 2018 · 1 comment

Comments

@holyswordman
Copy link

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
Copy link

Inc0n commented Aug 13, 2018

use posix_spawn instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants