Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24614] iOS: AVFoundation/AVSpeechSynthesizer class not found

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-09-25T18:52:18.000+0000
Affected Version/sn/a
Fix Version/sHyperloop 2.2.0
ComponentsHyperloop
Labelsios
ReporterNaga harish M
AssigneeJan Vennemann
Created2017-04-20T20:29:05.000+0000
Updated2017-10-02T23:39:14.000+0000

Description

Hi, I tried to load AVSpeechSynthesizer like this in Appc titanium mobile app using hyperloop. var AVSpeechSynthesizer = require('AVFoundation/AVSpeechSynthesizer'); But getting below error. [ERROR] : An error occurred during build after 3s 610ms [ERROR] : The iOS class "AVSpeechSynthesizer" could not be found in the framework "AVFoundation". (../build/iphone/build/Products/Debug-iphonesimulator/soispeech.app/testSpeech.js) But when I tried like this var AVSpeechSynthesizer = require('hyperloop/avfoundation/avspeechsynthesizer'); did not get any error and my code is working as I expected. When I am unable to load like this, where as other classes are loaded in same var AVSpeechSynthesizer = require('AVFoundation/AVSpeechSynthesizer'); I am doing anything wrong or did I need to config something before I load this class in to JS file.

Comments

  1. Hans Knöchel 2017-04-21

    Looks valid, moving to Engineering!
  2. Brenton House 2017-07-31

    I also noticed that even when using the workaround, when you continue to the next step of:
       var speechSynthesizer = new AVSpeechSynthesizer();
       
    you will get the following error: {noformat} [ERROR] TypeError: undefined is not a constructor (evaluating 'new AVSpeechSynthesizer()') {noformat}
  3. Hans Knöchel 2017-09-25

    PR: https://github.com/appcelerator/hyperloop.next/pull/211
  4. Eric Wieber 2017-10-02

    Verified fix is in Hyperloop 2.2.0. Able to build when referencing AVSpeechSynthesizer.

JSON Source