未能build立Saurik的ldid工具

我遇到这些错误,当我执行这个命令“./make.sh”为越狱调整发展build立ldid公用事业

Bilals-Mac:ldid billy$ ./make.sh + g++ -arch i386 -arch x86_64 -arch ppc -arch armv6 -o ldid ldid.cpp -I. -xc lookup2.c sha1.c Undefined symbols for architecture i386: "SHA1Result(SHA1Context*, unsigned char*)", referenced from: sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o "SHA1Input(SHA1Context*, unsigned char const*, unsigned int)", referenced from: sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o "SHA1Reset(SHA1Context*)", referenced from: sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o ld: symbol(s) not found for architecture i386 In file included from ldid.cpp:22: ./minimal/stdlib.h:123:10: fatal error: 'errno.h' file not found #include <errno.h> ^ 1 error generated. lookup2.c:9:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^ 1 error generated. error: unable to create target: 'No available targets are compatible with this triple, see -version for the available targets.' 1 error generated. clang: error: linker command failed with exit code 1 (use -v to see invocation)**strong text** 

谁有问题build立ldid,他可以从这里http://joedj.net/ldid获得prebuild ldid

只需下载并放置在Theos / bin文件夹中即可

首先下载苹果公司的“命令行工具”的Xcode,如果你还没有。

 /usr/bin/xcode-select --install 

更改到适当的ldid目录。

 cd $THEOS/bin/ 

下载这个已经编译好的Theos版本。

 sudo wget http://ac3xx.com/ldid && sudo chmod +x $THEOS/bin/ldid 

显然这似乎是Xcode 5的一个问题。

来自http://iphonedevwiki.net/index.php/Updating_extensions_for_iOS_7#Theos_and_ldid_errors的信息&#x3002;

希望这可以帮助。

我假设你正在使用OSX Mavericks并安装了最新的XCode。 如果是的话,那么这个问题就会发生,因为OSX升级版的苹果清除了许多之前出现的核心Posix库。 不知道为什么。 以前你可以通过安装Xcode的“命令行工具”来解决这个问题。 不幸的是,最新版本的xcode没有select直接从Xcode UI安装命令行工具。 你必须使用一个叫做xcode-select的小工具

在terminal中input以下命令以pipe理员身份重新运行:

 /usr/bin/xcode-select --install 

希望这可以帮助。