Hi all, i am working on a library wrapper for POS system, i have already done the Android side which took me some time to get it working, now I need to get the iOS version done, I have the Library compile just fine, i have generated the xml file and placed in the additional Library folder, I have also copied the framework into the Libs folder of my hosted mac builder along with the libname.a, name.a and name.h files.
I have also linked all the necessary frameworks that are needed for this SDK, When I try to run the library in a small example i get the following errors:
The Library SDK i'm trying to wrap is this one here when I compile the library in xcode i don't get any errors at all, any hints as to what to look for?
Walter
I have also linked all the necessary frameworks that are needed for this SDK, When I try to run the library in a small example i get the following errors:
ld: warning: ignoring file ../../Libs/AVFoundation.framework/AVFoundation.tbd, missing required architecture arm64 in file ../../Libs/AVFoundation.framework/AVFoundation.tbd
ld: warning: Could not find or use auto-linked framework 'ExternalAccessory'
Undefined symbols for architecture arm64:
"_AVAudioSessionCategoryPlayAndRecord", referenced from:
-[SMPPinPlusReader hasValidAudioRoute] in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
___43-[AEAudioController setInputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___44-[AEAudioController setOutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___74-[AEAudioController setAudioDescription:inputEnabledutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
-[AEAudioController setAudioSessionCategory:] in SumUpSDK(AEAudioController.o)
-[AEAudioController audioSessionCategory] in SumUpSDK(AEAudioController.o)
...
"_AVAudioSessionCategoryPlayback", referenced from:
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
___43-[AEAudioController setInputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___44-[AEAudioController setOutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___74-[AEAudioController setAudioDescription:inputEnabledutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
-[AEAudioController setAudioSessionCategory:] in SumUpSDK(AEAudioController.o)
-[AEAudioController audioSessionCategory] in SumUpSDK(AEAudioController.o)
"_AVAudioSessionCategoryRecord", referenced from:
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
___43-[AEAudioController setInputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___44-[AEAudioController setOutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
___74-[AEAudioController setAudioDescription:inputEnabledutputEnabled:error:]_block_invoke in SumUpSDK(AEAudioController.o)
-[AEAudioController setAudioSessionCategory:] in SumUpSDK(AEAudioController.o)
-[AEAudioController audioSessionCategory] in SumUpSDK(AEAudioController.o)
-[AEAudioController updateInputDeviceStatus] in SumUpSDK(AEAudioController.o)
...
"_AVAudioSessionInterruptionNotification", referenced from:
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
"_AVAudioSessionInterruptionTypeKey", referenced from:
___46-[AEAudioController interruptionNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
"_AVAudioSessionMediaServicesWereResetNotification", referenced from:
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
"_AVAudioSessionModeDefault", referenced from:
-[AEAudioController setUseMeasurementMode:] in SumUpSDK(AEAudioController.o)
___50-[AEAudioController audioRouteChangeNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
"_AVAudioSessionModeMeasurement", referenced from:
-[AEAudioController setUseMeasurementMode:] in SumUpSDK(AEAudioController.o)
___50-[AEAudioController audioRouteChangeNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
-[SMPManchesterCommunicationService init] in SumUpSDK(libmanchesterCommunicationService.a-arm64-master.o)
"_AVAudioSessionPortBuiltInMic", referenced from:
___50-[AEAudioController audioRouteChangeNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
-[AEAudioController initAudioSession] in SumUpSDK(AEAudioController.o)
"_AVAudioSessionPortBuiltInSpeaker", referenced from:
___50-[AEAudioController audioRouteChangeNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
-[AEAudioController initAudioSession] in SumUpSDK(AEAudioController.o)
"_AVAudioSessionPortHeadphones", referenced from:
-[SMPPinPlusReader hasValidAudioRoute] in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
"_AVAudioSessionPortHeadsetMic", referenced from:
-[SMPPinPlusReader hasValidAudioRoute] in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
"_AVAudioSessionRouteChangeNotification", referenced from:
-[SMPAudioManager setupAVAudioSessionRouteChangeNotification] in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
-[AEAudioController initWithAudioDescriptionptions:] in SumUpSDK(AEAudioController.o)
___37-[PECReaderManager startAudioSession]_block_invoke in SumUpSDK(libReaderManagerLib.a-arm64-master.o)
"_AVAudioSessionRouteChangeReasonKey", referenced from:
___50-[AEAudioController audioRouteChangeNotification:]_block_invoke in SumUpSDK(AEAudioController.o)
"_AVMetadataObjectTypeAztecCode", referenced from:
___78+[AVMetadataMachineReadableCodeObject(TwoDimensional) ish_twoDimensionalTypes]_block_invoke in SumUpSDK(AVMetadataMachineReadableCodeObject+TwoDimensional.o)
"_AVMetadataObjectTypeDataMatrixCode", referenced from:
___78+[AVMetadataMachineReadableCodeObject(TwoDimensional) ish_twoDimensionalTypes]_block_invoke in SumUpSDK(AVMetadataMachineReadableCodeObject+TwoDimensional.o)
"_AVMetadataObjectTypePDF417Code", referenced from:
___78+[AVMetadataMachineReadableCodeObject(TwoDimensional) ish_twoDimensionalTypes]_block_invoke in SumUpSDK(AVMetadataMachineReadableCodeObject+TwoDimensional.o)
"_AVMetadataObjectTypeQRCode", referenced from:
___78+[AVMetadataMachineReadableCodeObject(TwoDimensional) ish_twoDimensionalTypes]_block_invoke in SumUpSDK(AVMetadataMachineReadableCodeObject+TwoDimensional.o)
"_EAAccessoryDidConnectNotification", referenced from:
-[SMPRegisterManager startListeningForRegister] in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
"_OBJC_CLASS_$_AVAudioPlayer", referenced from:
objc-class-ref in libCore.a(B4IMediaPlayer.o)
objc-class-ref in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
objc-class-ref in SumUpSDK(AudioStream.o)
"_OBJC_CLASS_$_AVAudioSession", referenced from:
objc-class-ref in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
objc-class-ref in SumUpSDK(AEAudioController.o)
objc-class-ref in SumUpSDK(libmanchesterCommunicationService.a-arm64-master.o)
objc-class-ref in SumUpSDK(libReaderManagerLib.a-arm64-master.o)
"_OBJC_CLASS_$_AVMetadataMachineReadableCodeObject", referenced from:
l_OBJC_$_CATEGORY_AVMetadataMachineReadableCodeObject_$_TwoDimensional in SumUpSDK(AVMetadataMachineReadableCodeObject+TwoDimensional.o)
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
"_OBJC_CLASS_$_EASession", referenced from:
objc-class-ref in SumUpSDK(libSMPPinPlusReader.a-arm64-master.o)
"_OBJC_CLASS_$_MKMapView", referenced from:
objc-class-ref in SumUpSDK(QMapViewController.o)
"_OBJC_CLASS_$_MKPinAnnotationView", referenced from:
objc-class-ref in SumUpSDK(QMapViewController.o)
"_vDSP_maxmgv", referenced from:
_performLevelMonitoring in SumUpSDK(AEAudioController.o)
"_vDSP_meamgv", referenced from:
_performLevelMonitoring in SumUpSDK(AEAudioController.o)
"_vDSP_vadd", referenced from:
_renderCallback in SumUpSDK(AEAudioController.o)
"_vDSP_vsmul", referenced from:
_renderCallback in SumUpSDK(AEAudioController.o)
_serviceAudioInput in SumUpSDK(AEAudioController.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The Library SDK i'm trying to wrap is this one here when I compile the library in xcode i don't get any errors at all, any hints as to what to look for?
Walter