Apple Mach-O Linker編譯設備時出錯我剛剛升級到xcode 4.0,我無法再部署到iPhone,我得到Apple Mach-O鏈接器錯誤,但它仍適用于模擬器。 Ld /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Intermediates/iParcel.build/Debug-iphoneos/iParcel.build/Objects-normal/armv7/iParcel normal armv7
cd /Users/yveswheeler/iParcel
setenv IPHONEOS_DEPLOYMENT_TARGET 3.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos -F/Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos -filelist /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Intermediates/iParcel.build/Debug-iphoneos/iParcel.build/Objects-normal/armv7/iParcel.LinkFileList -dead_strip -all_load -ObjC -lxml2 -miphoneos-version-min=3.2 -framework UIKit -framework CoreGraphics -framework QuartzCore /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos/libThree20.a /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos/libThree20Core.a /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos/libThree20Network.a /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iParcel-fkeqjcjcbbhjwhdssjptkdxzzzxh/Build/Products/Debug-iphoneos/libThree20Style.a /Users/yveswheeler/Library/Developer/Xcode/DerivedData/iPa
3 回答

慕萊塢森
TA貢獻1810條經驗 獲得超4個贊
這是永久的解決方案。一般覆蓋項目可能會導致這個問題。嘗試這種方法。
-UPDATE - Clang錯誤 - Mach-O鏈接器錯誤
在某些情況下,錯誤日志窗口顯示.xctest錯誤,以解決它
- >選擇您的項目
- >除此之外(在General選項卡之前)從下拉列表中選擇projectTest文件
- >有一個選項(如ProjNameTests)
- >在主機應用程序中,只有在顯示自定義時才從下拉列表中選擇項目
DONE!

慕沐林林
TA貢獻2016條經驗 獲得超9個贊
剛遇到同樣的問題。
解決方案(對我來說)=檢查你的框架。
在我的情況下,我添加了與CoreData相關的類而沒有“CoreData.framework”。添加它解決了MACH_O的抱怨。
- 3 回答
- 0 關注
- 851 瀏覽
添加回答
舉報
0/150
提交
取消