嘗試使用Xcode進行編譯時,出現(xiàn)以下錯誤: **Ld /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher normal i386 cd /Users/doronkatz/Sites/xCode/iKosher setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Xcode4/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -L/Users/doronkatz/Sites/xCode/iKosher -F/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -filelist /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Intermediates/iKosher.build/Debug-iphonesimulator/iKosher.build/Objects-normal/i386/iKosher.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -Xlinker -objc_abi_version -Xlinker 2 -lz -framework Security -framework CFNetwork -framework CoreData -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -o /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosherUndefined symbols for architecture i386: "_UTTypeCreatePreferredIdentifierForTag", referenced from: +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o "_UTTypeCopyPreferredTagWithClass", referenced from: +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o "_kUTTagClassMIMEType", referenced from: +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o "_kUTTagClassFilenameExtension", referenced from: +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o不知道這意味著什么。
3 回答

湖上湖
TA貢獻2003條經驗 獲得超2個贊
我使用以下方法(針對XCode 4)解決了該問題:
1)在項目導航窗口中選擇項目,該項目將在右側顯示項目摘要
2)選擇第4個標簽構建階段
3)選擇使用庫鏈接二進制文件選項
4)添加要獲取的框架
5)將框架從主文件夾移動到frameworks文件夾
6)重新構建它,錯誤消失了。
- 3 回答
- 0 關注
- 549 瀏覽
添加回答
舉報
0/150
提交
取消