add ios platform by 'cordova platform add ios@5.1.1'
add this cognitiveServices plugin by 'cordova plugin add
then build by 'cordova build ios'
The build gives errors when archiving:
Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SPXSpeechSynthesisCancellationDetails", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechSynthesizer", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechRecognizer", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXCancellationDetails", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechConfiguration", referenced from: objc-class-ref in CDVCognitiveServices.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If it is built to emulator like 'cordova build ios --emulator', it builds successfully.
Any idea how to resolve this?
Steps to reproduce the behavior:
The build gives errors when archiving:
Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SPXSpeechSynthesisCancellationDetails", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechSynthesizer", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechRecognizer", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXCancellationDetails", referenced from: objc-class-ref in CDVCognitiveServices.o "_OBJC_CLASS_$_SPXSpeechConfiguration", referenced from: objc-class-ref in CDVCognitiveServices.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If it is built to emulator like 'cordova build ios --emulator', it builds successfully. Any idea how to resolve this?