card-io / card.io-iOS-source

The open-source code for the card.io-iOS-SDK: provides fast, easy credit card scanning in mobile apps
Other
686 stars 369 forks source link

Facing Link issue in my project on Using generated .a files. #72

Closed sachin123sharma closed 8 years ago

sachin123sharma commented 8 years ago

Hello Team ,

I am getting Below error , When i use libCardIO.a file in Project , while Building my Project , Please suggest.

[TRACE] :  Ld build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/i386/Residential\ Test normal i386
[TRACE] :      cd /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone
[TRACE] :      export IPHONEOS_DEPLOYMENT_TARGET=7.1
[TRACE] :      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin:/Users/ssharma/.rvm/gems/ruby-2.3.0/bin:/Users/ssharma/.rvm/gems/ruby-2.3.0@global/bin:/Users/ssharma/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ssharma/.rvm/bin"
[TRACE] :      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Products/Debug-iphonesimulator -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/lib -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/Classes/APSAnalytics -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/Classes/APSHTTPClient -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/ti.geofence/1.1.4 -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/com.appcelerator.apm/1.1.5 -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/ti.map/2.5.2 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/com.likelysoft.cardio/1.0.0 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/ti.compression/1.1.1 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/com.mirasense.scanditsdk/4.15.0 -F/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Products/Debug-iphonesimulator -F/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/../../modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -F/Library/Application\ Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -F/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -filelist /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/i386/Residential\ Test.LinkFileList -mios-simulator-version-min=7.1 -dead_strip -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework CoreLocation -framework CoreLocation -weak_framework MapKit -weak_framework MapKit -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework CoreText -framework AVFoundation -framework AudioToolbox -framework UIKit -framework QuartzCore -framework SystemConfiguration -liconv -lz -lc++ -framework ScanditBarcodeScanner -fobjc-arc -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework CoreText -framework AVFoundation -framework AudioToolbox -framework UIKit -framework QuartzCore -framework SystemConfiguration -liconv -lz -lc++ -framework ScanditBarcodeScanner -fobjc-arc -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework Contacts -weak_framework ContactsUI -weak_framework WatchConnectivity -weak_framework CoreSpotlight -fobjc-link-runtime -stdlib=libc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Residential\ Test.app.xcent -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lAPSHTTPClient -framework ExternalAccessory -ltiverify -lti.geofence -lcom.appcelerator.apm -lti.map -lcom.likelysoft.cardio -lti.compression -lcom.mirasense.scanditsdk -Xlinker -dependency_info -Xlinker /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/i386/Residential\ Test_dependency_info.dat -o /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/i386/Residential\ Test
[TRACE] :  ld: warning: directory not found for option '-F/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform'
[TRACE] :  ld: warning: directory not found for option '-F/Users/ssharma/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform'
[TRACE] :  Undefined symbols for architecture i386:
[TRACE] :    "_vImageBoxConvolve_ARGB8888", referenced from:
[TRACE] :        -[UIImage(ImageEffects) applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:] in libcom.likelysoft.cardio.a(UIImage+ImageEffects.o)
[TRACE] :    "_vImageMatrixMultiply_ARGB8888", referenced from:
[TRACE] :        -[UIImage(ImageEffects) applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:] in libcom.likelysoft.cardio.a(UIImage+ImageEffects.o)
[TRACE] :  
[TRACE] :  Ld build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/x86_64/Residential\ Test normal x86_64
[TRACE] :      cd /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone
[TRACE] :      export IPHONEOS_DEPLOYMENT_TARGET=7.1
[TRACE] :      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin:/Users/ssharma/.rvm/gems/ruby-2.3.0/bin:/Users/ssharma/.rvm/gems/ruby-2.3.0@global/bin:/Users/ssharma/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/ssharma/.rvm/bin"
[TRACE] :      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Products/Debug-iphonesimulator -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/lib -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/Classes/APSAnalytics -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/Classes/APSHTTPClient -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/ti.geofence/1.1.4 -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/com.appcelerator.apm/1.1.5 -L/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/ti.map/2.5.2 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/com.likelysoft.cardio/1.0.0 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/ti.compression/1.1.1 -L/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/modules/iphone/com.mirasense.scanditsdk/4.15.0 -F/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Products/Debug-iphonesimulator -F/Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/../../modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -F/Library/Application\ Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -F/Users/ssharma/Library/Application\ Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform -filelist /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/x86_64/Residential\ Test.LinkFileList -mios-simulator-version-min=7.1 -dead_strip -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -framework CoreLocation -framework CoreLocation -weak_framework MapKit -weak_framework MapKit -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework CoreText -framework AVFoundation -framework AudioToolbox -framework UIKit -framework QuartzCore -framework SystemConfiguration -liconv -lz -lc++ -framework ScanditBarcodeScanner -fobjc-arc -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework CoreText -framework AVFoundation -framework AudioToolbox -framework UIKit -framework QuartzCore -framework SystemConfiguration -liconv -lz -lc++ -framework ScanditBarcodeScanner -fobjc-arc -weak-lti_ios_profiler -weak-lti_ios_debugger -weak-lTiCore -weak_framework Contacts -weak_framework ContactsUI -weak_framework WatchConnectivity -weak_framework CoreSpotlight -fobjc-link-runtime -stdlib=libc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Residential\ Test.app.xcent -weak_framework iAd -framework CoreMedia -weak_framework CoreMotion -lAPSAnalytics -weak_framework CoreText -framework EventKit -framework EventKitUI -weak_framework Security -licucore -framework Foundation -weak_framework UIKit -framework CoreGraphics -weak_framework AddressBook -framework AddressBookUI -framework CFNetwork -framework CoreLocation -weak_framework MapKit -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -lsqlite3 -lz -framework AudioToolbox -weak_framework MediaPlayer -framework AVFoundation -lxml2 -framework StoreKit -lAPSHTTPClient -framework ExternalAccessory -ltiverify -lti.geofence -lcom.appcelerator.apm -lti.map -lcom.likelysoft.cardio -lti.compression -lcom.mirasense.scanditsdk -Xlinker -dependency_info -Xlinker /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/x86_64/Residential\ Test_dependency_info.dat -o /Users/ssharma/Documents/Appcelerator_Studio_Workspace/FieldResidential/build/iphone/build/Intermediates/Residential\ Test.build/Debug-iphonesimulator/Residential\ Test.build/Objects-normal/x86_64/Residential\ Test
[TRACE] :  ld: warning: directory not found for option '-F/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform'
[TRACE] :  ld: warning: directory not found for option '-F/Users/ssharma/Library/Application Support/Titanium/modules/iphone/com.mirasense.scanditsdk/4.15.0/platform'
[TRACE] :  Undefined symbols for architecture x86_64:
[TRACE] :    "_vImageBoxConvolve_ARGB8888", referenced from:
[TRACE] :        -[UIImage(ImageEffects) applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:] in libcom.likelysoft.cardio.a(UIImage+ImageEffects.o)
[TRACE] :    "_vImageMatrixMultiply_ARGB8888", referenced from:
[TRACE] :        -[UIImage(ImageEffects) applyBlurWithRadius:tintColor:saturationDeltaFactor:maskImage:] in libcom.likelysoft.cardio.a(UIImage+ImageEffects.o)
[TRACE] :  ld: symbol(s) not found for architecture x86_64
[TRACE] :  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please suggest?

bluk commented 8 years ago

Please ensure that you are also including all the frameworks (specifically Accelerate) as well as the OpenCV static libraries when building your app.

If this does not fix your issue, please leave a comment and we'll reopen this issue. Thanks!