CatalystCode / cordova-plugin-cogsvcsspeech

Cordova plugin for Microsoft Cognitive Services speech services.
MIT License
2 stars 3 forks source link

'cordova build ios' gives errors #42

Closed shanlin2dltk closed 4 years ago

shanlin2dltk commented 4 years ago

Steps to reproduce the behavior:

  1. clone 'CatalystCode/cordova-plugin-cogsvcsspeech'
  2. create a Cordova project by 'cordova create ...'
  3. add ios platform by 'cordova platform add ios@5.1.1'
  4. add this cognitiveServices plugin by 'cordova plugin add
  5. 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?

shanlin2dltk commented 4 years ago

by removing armv7 architecture, the issue is resolved.