11.3写一个 iphone/tool ,报Killed: 9错误,什么情况?

nic.pl

选 [10.] iphone/tool

代码:

int main(int argc, char **argv, char **envp) 
{
  printf("hello world");
  return 0;
}

编译运行测试:

/usr/bin$ ./test
-sh: line 205:  5101 Killed: 9               ./test
/usr/bin$ ./test
-sh: line 207:  5102 Killed: 9               ./test
/usr/bin$ ./test
-sh: line 209:  5115 Killed: 9               ./test
/usr/bin$ ./test
-sh: line 211:  5304 Killed: 9               ./test
/usr/bin$ ./test
-sh: line 213:  5307 Killed: 9               ./test
/usr/bin$ ./test
-sh: line 215:  5309 Killed: 9               ./test

什么情况,9 10系统全部正常,11.3测试不能执行了。请教各位老师,不能执行的原因!

iOS 11之后好像要放到/usr/bin文件下才能执行

这个,打包,make install 时,会自动装到/usr/bin下面的吧,报错的

1 个赞

怎么解决的最后

没解决,我就是做试验,练习,搞不定,没有人指导,我就放弃了

iOS 11 的 binary 需要一些code sign

edit:
platform-application true

可以看看 我的 post 关于 “bfinject 逆向工程”

在Makefile 加这个?加了之后还是不行啊

1 个赞

makefile 加了 这个 → “?”
问号肯定不行啊

我写的是
platform-application true

是在Makefile 中加上: platform-application=true 吗?

不是直接写在Makefile里面。。是在Makefile 用ldid -sent.xml xxx 然后ent.xml里面

platform-application=true