当我试图编译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
那是什么意思?我该如何解决?
答案 0 :(得分: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