0

当我尝试编译 cydia(来自 git://git.saurik.com/cydia.git,只需将其复制并粘贴到浏览器栏中)终端给我这个:

Leos-MacBook-Pro:cydia leogalli$ make
[cycc] SDURLCache/SDURLCache.m
[cycc] Menes/invocationWithSelector.mm
[cycc] Menes/radixSortWithSelector.mm
[cycc] Menes/yieldToSelector.mm
[cycc] CyteKit/MFMailComposeViewController-MailToURL.mm
[cycc] CyteKit/TableViewCell.mm
[cycc] CyteKit/ViewController.mm
[cycc] CyteKit/WebScriptObject-Cyte.mm
[cycc] CyteKit/WebView.mm
[cycc] CyteKit/WebViewController.mm
[cycc] CyteKit/WebViewTableViewCell.mm
[cycc] CyteKit/dispatchEvent.mm
[cycc] CyteKit/stringWithUTF8Bytes.mm
[cycc] Cydia/LoadingView.mm
[cycc] Cydia/LoadingViewController.mm
[cycc] Cydia/MIMEAddress.mm
[cycc] MobileCydia.mm
[cycc] Version.mm
[cycc] Sources.mm
[cycc] lookup3.c
[link] SDURLCache/SDURLCache.o Menes/invocationWithSelector.o Menes/radixSortWithSelector.o Menes/yieldToSelector.o CyteKit/MFMailComposeViewController-MailToURL.o CyteKit/TableViewCell.o CyteKit/ViewController.o CyteKit/WebScriptObject-Cyte.o CyteKit/WebView.o CyteKit/WebViewController.o CyteKit/WebViewTableViewCell.o CyteKit/dispatchEvent.o CyteKit/stringWithUTF8Bytes.o Cydia/LoadingView.o Cydia/LoadingViewController.o Cydia/MIMEAddress.o MobileCydia.o Version.o Sources.o lookup3.o
ld: file is universal (4 slices) but does not contain a(n) armv6 slice: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.o for architecture armv6
collect2: ld returned 1 exit status
make: *** [MobileCydia] Error 1
Leos-MacBook-Pro:cydia leogalli$ make
[link] SDURLCache/SDURLCache.o Menes/invocationWithSelector.o Menes/radixSortWithSelector.o Menes/yieldToSelector.o CyteKit/MFMailComposeViewController-MailToURL.o CyteKit/TableViewCell.o CyteKit/ViewController.o CyteKit/WebScriptObject-Cyte.o CyteKit/WebView.o CyteKit/WebViewController.o CyteKit/WebViewTableViewCell.o CyteKit/dispatchEvent.o CyteKit/stringWithUTF8Bytes.o Cydia/LoadingView.o Cydia/LoadingViewController.o Cydia/MIMEAddress.o MobileCydia.o Version.o Sources.o lookup3.o
ld: file is universal (4 slices) but does not contain a(n) armv6 slice: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.o for architecture armv6
collect2: ld returned 1 exit status
make: *** [MobileCydia] Error 1

那么这是什么意思?我该如何解决?

4

1 回答 1

0

ld:文件是通用的(4 片),但不包含(n)armv6 片:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib /crt1.o 用于架构 armv6

此错误意味着 makefile 中的链接器命令请求二进制文件与 armv6 CPU 兼容,但这在 Xcode 4.5 中是不可能的,因为 iOS 6 SDK 不再支持 armv6。

解决方案是从 Apple 下载 Xcode 4.4.1 DMG,将其 Xcode.app 复制到 /Applications/Xcode441.app,然后xcode-select

sudo xcode-select --switch /Applications/Xcode441.app/Contents/Developer
于 2013-01-30T03:35:53.623 回答