Tesseract-OCR-iOS icon indicating copy to clipboard operation
Tesseract-OCR-iOS copied to clipboard

Compiling error

Open jmtaverne opened this issue 7 years ago • 6 comments

Hi,

if I compile my project on the Xcode simulator everything works fine but when I want to simulate this on my iPad Air 2 I'm receiving following Error.

Can somebody please help me.

Thank you.

Ld /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/Kontaktbogen.app/Kontaktbogen normal arm64 cd /Users/jean-micheltaverne/Documents/xcode/Kontaktbogen export IPHONEOS_DEPLOYMENT_TARGET=10.3 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos -F/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos -F/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/Alamofire -F/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/IQKeyboardManagerSwift -F/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/SwiftyDropbox -F/Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/TesseractOCRiOS -F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/Pods/GoogleMaps/Base/Frameworks -F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/Pods/GoogleMaps/Maps/Frameworks -F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/Pods/GooglePlaces/Frameworks -F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/build/Debug-iphoneos/SwiftyDropbox -F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/build/Debug-iphoneos/TesseractOCRiOS -filelist /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Intermediates/Kontaktbogen.build/Debug-iphoneos/Kontaktbogen.build/Objects-normal/arm64/Kontaktbogen.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=10.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Intermediates/Kontaktbogen.build/Debug-iphoneos/Kontaktbogen.build/Objects-normal/arm64/Kontaktbogen_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Intermediates/Kontaktbogen.build/Debug-iphoneos/Kontaktbogen.build/Objects-normal/arm64/Kontaktbogen.swiftmodule -ObjC -weak_library /usr/lib/libstdc++.6.0.9.dylib -lc++ -lstdc++ -lz -framework Accelerate -framework Alamofire -framework CoreData -framework CoreGraphics -framework CoreLocation -framework CoreText -framework GLKit -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -framework GooglePlaces -framework IQKeyboardManagerSwift -framework ImageIO -framework OpenGLES -framework QuartzCore -framework SwiftyDropbox -framework SystemConfiguration -framework TesseractOCR -framework UIKit -framework TesseractOCR -framework SwiftyDropbox -framework Alamofire -framework CoreData -framework IQKeyboardManagerSwift -framework MessageUI -framework Pods_Kontaktbogen -Xlinker -dependency_info -Xlinker /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Intermediates/Kontaktbogen.build/Debug-iphoneos/Kontaktbogen.build/Objects-normal/arm64/Kontaktbogen_dependency_info.dat -o /Users/jean-micheltaverne/Library/Developer/Xcode/DerivedData/Kontaktbogen-frvnyffmbkxqhufzjahbwacivybc/Build/Products/Debug-iphoneos/Kontaktbogen.app/Kontaktbogen

ld: warning: directory not found for option '-F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/build/Debug-iphoneos/SwiftyDropbox' ld: warning: directory not found for option '-F/Users/jean-micheltaverne/Documents/xcode/Kontaktbogen/build/Debug-iphoneos/TesseractOCRiOS' ld: framework not found TesseractOCR clang: error: linker command failed with exit code 1 (use -v to see invocation)

jmtaverne avatar May 22 '17 08:05 jmtaverne

I am having the exact same problem. The application builds and runs on flavors of simulator but as soon as I try to put it on real HW I get this error. Any idea why? I updated and reinstalled pods but to no avail.

My log for comparison: `Ld /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos/TextRecognition.app/TextRecognition normal armv7 cd /Users/lcollado/Desktop/TextRecognition/TextRecognition export IPHONEOS_DEPLOYMENT_TARGET=10.3 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos -F/Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos -F/Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos/SQLite.swift -F/Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos/TesseractOCRiOS -filelist /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Intermediates/TextRecognition.build/Debug-iphoneos/TextRecognition.build/Objects-normal/armv7/TextRecognition.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=10.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Intermediates/TextRecognition.build/Debug-iphoneos/TextRecognition.build/Objects-normal/armv7/TextRecognition_lto.o -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Intermediates/TextRecognition.build/Debug-iphoneos/TextRecognition.build/Objects-normal/armv7/TextRecognition.swiftmodule -ObjC -weak_library /usr/lib/libstdc++.6.0.9.dylib -lstdc++ -framework SQLite -framework TesseractOCR -framework Pods_TextRecognition -Xlinker -dependency_info -Xlinker /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Intermediates/TextRecognition.build/Debug-iphoneos/TextRecognition.build/Objects-normal/armv7/TextRecognition_dependency_info.dat -o /Users/lcollado/Library/Developer/Xcode/DerivedData/TextRecognition-hhayfjeqwabhrtbntsdhojxztglw/Build/Products/Debug-iphoneos/TextRecognition.app/TextRecognition ld: framework not found TesseractOCR clang: error: linker command failed with exit code 1 (use -v to see invocation)

`

ChimesoLec avatar Jun 23 '17 15:06 ChimesoLec

Does your podfile include use_frameworks! ?

nooniens avatar Jun 28 '17 20:06 nooniens

So do i. Just set Enable Bitcode = NO

tanpengsccd avatar Jun 30 '17 08:06 tanpengsccd

Thanks but bitcode =NO is one of the first things I tried. The problem persists for me.

Sent from my iPhone

On Jun 30, 2017, at 4:46 AM, 谭鹏-tanpengsccd [email protected] wrote:

So do i. Just set Enable Bitcode = NO

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ChimesoLec avatar Jul 10 '17 15:07 ChimesoLec

I have same error.

mobile3000 avatar Nov 09 '17 18:11 mobile3000

Me too 😭

margaritagomez avatar Mar 31 '18 04:03 margaritagomez