编译的demo在ipad mini2上运行,报‘killed: 9’

代码

#include <stdio.h>
#include <dlfcn.h>
#import <Foundation/Foundation.h>

extern void TestFunction0( void) {
    NSLog(@"iOSRE: %u", arc4random_uniform(0));
}

extern void TestFunction1( void) {
    NSLog(@"iOSRE: %u", arc4random_uniform(0));
}

extern void TestFunction2( void) {
    NSLog(@"iOSRE: %u", arc4random_uniform(0));
}

extern void TestFunction3( void) {
    NSLog(@"iOSRE: %u", arc4random_uniform(0));
}

int main(int argc, char** argv)
{
    TestFunction3();
    return 0;
}

编译命令

clang -arch arm64 -isysroot `xcrun —sdk iphoneos —show-sdk-path` -framework Foundation -o main2_64 main2.m 
root# debugserver -x backboard *:1234 main2_64
debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-360.0.26.1
 for arm64.
error: failed to launch process debugserver: <unknown failure>
Exiting.

使用debugserver 也启动不起来