2016-11-01 103 views
1

使用GitHub的指示,我剛裝tesseraact OCR框架(使用-v看到調用),但我一直在建設收到此錯誤:連接器命令退出碼1失敗使用TesseractOCR

Ld /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS/TesseractOCR.framework/TesseractOCR normal armv7 
cd /Users/wayne.rumble/Documents/iOS/Splitter/Pods 
export IPHONEOS_DEPLOYMENT_TARGET=8.0 
export PATH="/Applications/Xcode_7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_7.3.1.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode_7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -dynamiclib -isysroot /Applications/Xcode_7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS -L/Users/wayne.rumble/Documents/iOS/Splitter/Pods/TesseractOCRiOS/TesseractOCR/lib -F/Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS -filelist /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR.LinkFileList -install_name @rpath/TesseractOCR.framework/TesseractOCR -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -no_deduplicate -fembed-bitcode-marker -weak_library /usr/lib/libstdc++.6.0.9.dylib -llept -lstdc++ -ltesseract_all -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -framework Foundation -framework UIKit -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR_dependency_info.dat -o /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS/TesseractOCR.framework/TesseractOCR 

ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我對於使用Swift和Xcode來說相當新穎,並且正在努力閱讀這個錯誤代碼。

任何幫助將不勝感激。

感謝

回答

2
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

鏈接器說的是問題是在這裏。我會嘗試將Xcode設置爲ENABLE_BITCODE=YES。到ENABLE_BITCODE=NO並再次編譯,看看它是否刪除了該錯誤。在Xcode的項目設置視圖中,您應該能夠搜索此設置並將其設置爲NO。

enter image description here

+0

感謝您的回覆。我已經將Enable_BitCode設置爲no,並在錯誤發生後進行了雙重檢查。有任何想法嗎? – Wazza

+0

我只是修復它,我改變了位置的位碼設置,但不是項目。現在它不承認任何tesseract代碼投入。感謝您的幫助。把我推向了正確的方向! – Wazza

1

原來我已經改變了目標位碼設置,但沒有項目!

相關問題