Ios 配置脚本和ldid
由于Ios 配置脚本和ldid,ios,gcc,scripting,jailbreak,Ios,Gcc,Scripting,Jailbreak,由于Killed:9错误,配置脚本的摘录表单失败,这是因为iOS 5只能运行签名的应用程序。所以我需要找到一种方法,在这些测试中把ldid-s放在哪里,唯一的问题是放在哪里 有人吗 失败于 checking build system compiler gcc... no checking build system compiler gcc -g -O2 ... no checking build system compiler cc... no checking build system com
Killed:9
错误,配置脚本的摘录表单失败,这是因为iOS 5只能运行签名的应用程序。所以我需要找到一种方法,在这些测试中把ldid-s放在哪里,唯一的问题是放在哪里
有人吗
失败于
checking build system compiler gcc... no
checking build system compiler gcc -g -O2 ... no
checking build system compiler cc... no
checking build system compiler gcc... no
checking build system compiler c89... no
checking build system compiler c99... no
configure: error: Cannot find a build system compiler
和config.log
onfigure:15586: gcc -c -g -O2 conftest.c >&5
configure:15586: $? = 0
configure:15586: result: yes
configure:15586: checking sys/time.h presence
configure:15586: gcc -E conftest.c
configure:15586: $? = 0
configure:15586: result: yes
configure:15586: checking for sys/time.h
configure:15586: result: yes
configure:15677: checking build system compiler gcc
configure:15690: gcc conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:15693: $? = 0
./configure: line 15675: 27218 Killed: 9 ./a.out
./configure: line 15695: ./b.out: No such file or directory
./configure: line 15695: ./a.exe: No such file or directory
./configure: line 15695: ./a_out.exe: No such file or directory
./configure: line 15695: ./conftest: No such file or directory
configure:15700: result: no
configure:15677: checking build system compiler gcc -g -O2
configure:15690: gcc -g -O2 conftest.c
conftest.c: In function 'main':
conftest.c:4: warning: incompatible implicit declaration of built-in function 'exit'
configure:15693: $? = 0
./configure: line 15675: 27234 Killed: 9 ./a.out
./configure: line 15695: ./b.out: No such file or directory
./configure: line 15695: ./a.exe: No such file or directory
./configure: line 15695: ./a_out.exe: No such file or directory
./configure: line 15695: ./conftest: No such file or directory
configure:15700: result: no
最后是./configure脚本
if test -n "$CC_FOR_BUILD"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
$as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
int
main ()
{
exit(0);
}
EOF
gmp_compile="$CC_FOR_BUILD conftest.c"
cc_for_build_works=no
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
(eval $gmp_compile) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
cc_for_build_works=yes
fi
fi
rm -f conftest* a.out b.out a.exe a_out.exe
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
$as_echo "$cc_for_build_works" >&6; }
if test "$cc_for_build_works" = yes; then
:
else
as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
fi
elif test -n "$HOST_CC"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
$as_echo_n "checking build system compiler $HOST_CC... " >&6; }
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
int
main ()
{
exit(0);
}
如果测试-n“$CC\u用于构建”;然后
{$as_echo“$as_me:${as_-lineno-$lineno}:正在检查生成系统编译器$CC_以获取生成”>&5
$as_echo_n“正在检查生成系统编译器$CC_的生成…”>&6;}
#删除任何看起来像编译器输出到“| |”表达式的内容
rm-f conftest*a.out b.out a.exe a_out.exe
cat>conftest.c&5
ac_状态=$?
$as\u echo“$as\u me:${as\u lineno-$lineno}:\$?=$ac\u status”>&5
测试$ac_status=0;};然后
如果(./a.out | | |./b.out | |./a.exe | | |./a.u out.exe | |./conftest)>&5 2>&1;然后
cc_for_build_works=是
fi
fi
rm-f conftest*a.out b.out a.exe a_out.exe
{$as_echo“$as_me:${as_lineno-$lineno}:结果:$cc_for_build_works”>&5
$as_echo“$cc_用于构建工程”>&6;}
如果测试“$cc_用于构建工作”=是;然后
:
其他的
as_fn_错误$?“为\u生成指定的CC\u似乎不起作用”“$LINENO”5
fi
elif测试-n“$HOST_CC”;然后
{$as_echo“$as_me:${as_lineno-$lineno}:正在检查生成系统编译器$HOST_CC”>&5
$as_echo_n“正在检查生成系统编译器$HOST_CC…”>&6;}
#删除任何看起来像编译器输出到“| |”表达式的内容
rm-f conftest*a.out b.out a.exe a_out.exe
cat>conftest.c我不得不承认,除了最简单的shell脚本之外,我的阅读能力非常差,但基本上,在运行可执行文件之前,需要对其进行伪代码设计。看起来您要运行的可执行文件名为conftest
,对吗?因此,请尝试在此块中签名:
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
(eval $gmp_compile) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
#begin added code
ldid -S ./conftest
#end added code
if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
cc_for_build_works=yes
fi
fi
显然,如果在现有的路径中找不到ldid
(例如/usr/bin/ldid
)的完整路径,则可能需要提供该路径
更新:根据下面海报的评论,a.out
实际上是需要签名的可执行文件,而不是conftest
此外,它是大写的-s
-小写的s
删除了假代码符号。@JohnBruseliusJensen,你能给我们更多的信息吗?你在看什么?控制台输出?错误消息?“仍然不好”不是很有用。抱歉,5分钟前我发现'test$ac_status=0;};然后ldid-S./a.out'开始工作,但现在我再次陷入困境..配置:错误:无法确定可执行文件suffix@JohnBruseliusJensen,好的,那很有帮助。看起来这不再是代码签名的问题。然后,最好发布一个新问题,在脚本中添加更新的代码,并给它一个不同的标题(因为ldid
不再是问题所在)。这样,您将从具有适当专业知识的人员那里获得帮助。祝你好运