我在我的iOS應用程序中使用tesseract api iOS SDK 7.0在Xcode 5中運行完美地在模擬器上,但在測試設計(真正的設備),它顯示錯誤,即「蘋果機-o鏈接器錯誤鏈接器命令失敗,退出代碼1」,請任何機構幫助我解決問題。問題是: -iPhone 4S測試設備(真實設備)出現錯誤,即「蘋果馬赫 - 鏈接器錯誤鏈接器命令失敗,退出代碼1」
Ld的/Users/newtechfusion/Library/Developer/Xcode/DerivedData/CardScan-cycclrddpdetmngbjcyzotcszjfe/Build/Products/Debug-iphoneos/CardScan.app/CardScan正常的ARMv7 CD「/用戶/ newtechfusion /下載/ CardScan-master 5「 setenv IPHONEOS_DEPLOYMENT_TARGET 7.0 setenv PATH」/ Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/ usr/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin「 /Applications/Xcode \ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /應用/ Xcode的\ 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L /用戶/ newtechfusion /庫/開發商/ Xcode中/ DerivedData/CardSc an-cycclrddpdetmngbjcyzotcszjfe/Build/Products/Debug-iphoneos -L/Users/newtechfusion/Downloads/CardScan-master \ 5/tesseract-ocr/outdir -F/Users/newtechfusion/Library/Developer/Xcode/DerivedData/CardScan-cycclrddpdetmngbjcyzotcszjfe/Build/Products/Debug-iphoneos -filelist /Users/newtechfusion/Library/Developer/Xcode/DerivedData/CardScan-cycclrddpdetmngbjcyzotcszjfe/Build/Intermediates/CardScan.build/Debug-iphoneos/CardScan.build/Objects-normal/armv7/CardScan。 LinkFileList -fobjc-link-runtime -stdlib = libstdC++ -miphoneos-version-min = 7.0 -framework QuartzCore -framework CFNetwork -framework SystemConfiguration -framework Security -framework CoreData -framework Foundation -framework UIKit -framework CoreGraphics -licucore.A -ltesseract_api - ltesseract_ccstruct -ltesseract_ccutil -ltesseract_classify -ltesseract_cutil -ltesseract_dict -ltesseract_image -ltesseract_main -ltesseract_textord -ltesseract_training -ltesseract_viewer -ltesseract_wordrec -framework AddressBook -framework AddressBoo奎-lsqlite3.0 -Xlinker -dependency_info -Xlinker /Users/newtechfusion/Library/Developer/Xcode/DerivedData/CardScan-cycclrddpdetmngbjcyzotcszjfe/Build/Intermediates/CardScan.build/Debug-iphoneos/CardScan.build/Objects-normal/armv7/ CardScan_dependency_info.dat -o /Users/newtechfusion/Library/Developer/Xcode/DerivedData/CardScan-cycclrddpdetmngbjcyzotcszjfe/Build/Products/Debug-iphoneos/CardScan.app/CardScan
「LD:文件是通用(2片)但是不包含(n)armv7切片:/ Users/newtechfusion/Downloads/CardScan-master 5/tesseract-ocr/outdir/libtesseract_api.a文件'/ Users/newtechfusion/Downloads/CardScan-master 5/tesseract-ocr/outdir/libtesseract_api.a'for architecture armv7 clang:錯誤:鏈接器命令失敗,退出代碼1(使用-v查看調用)「
!鏈接命令,退出代碼爲1(使用-v看看調用)
檢查您的證書和設備目標 – Senthil
請顯示完整的錯誤消息。 – trojanfoe
感謝您的評論,但我已經檢查證書和目標設備,它是不是爲我工作 – Praful