{ "id": "167222", "key": "TIMOB-24614", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18429", "description": "", "name": "Hyperloop 2.2.0", "archived": false, "released": true, "releaseDate": "2017-10-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-25T18:52:18.000+0000", "created": "2017-04-20T20:29:05.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-10-02T23:39:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "Hi,\r\n\r\nI tried to load AVSpeechSynthesizer like this in Appc titanium mobile app using hyperloop.\r\n\r\n{{var AVSpeechSynthesizer = require('AVFoundation/AVSpeechSynthesizer');}}\r\n\r\nBut getting below error.\r\n\r\n [ERROR] : An error occurred during build after 3s 610ms\r\n\r\n [ERROR] : The iOS class \"AVSpeechSynthesizer\" could not be found in the framework \"AVFoundation\". (../build/iphone/build/Products/Debug-iphonesimulator/soispeech.app/testSpeech.js)\r\n\r\nBut when I tried like this {{var AVSpeechSynthesizer = require('hyperloop/avfoundation/avspeechsynthesizer');}} did not get any error and my code is working as I expected.\r\n\r\nWhen I am unable to load like this, where as other classes are loaded in same\r\n\r\n{{var AVSpeechSynthesizer = require('AVFoundation/AVSpeechSynthesizer');}}\r\n\r\nI am doing anything wrong or did I need to config something before I load this class in to JS file.\r\n", "attachment": [], "flagged": false, "summary": "iOS: AVFoundation/AVSpeechSynthesizer class not found", "creator": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nagaharish", "key": "nagaharish", "displayName": "Naga harish M", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "iOS 10.2\r\nTi SDK 6.0.2.GA\r\nXcode 8.2.1", "comment": { "comments": [ { "id": "417827", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks valid, moving to Engineering!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-21T08:44:48.000+0000", "updated": "2017-04-21T08:44:48.000+0000" }, { "id": "425091", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "I also noticed that even when using the workaround, when you continue to the next step of:\r\n\r\n\r\n{code:java}\r\nvar speechSynthesizer = new AVSpeechSynthesizer();\r\n{code}\r\n\r\nyou will get the following error:\r\n\r\n\r\n{noformat}\r\n[ERROR] TypeError: undefined is not a constructor (evaluating 'new AVSpeechSynthesizer()')\r\n{noformat}\r\n", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2017-07-31T14:25:41.000+0000", "updated": "2017-07-31T14:25:41.000+0000" }, { "id": "428408", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/211", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-25T14:58:57.000+0000", "updated": "2017-09-25T14:58:57.000+0000" }, { "id": "428656", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix is in Hyperloop 2.2.0. Able to build when referencing AVSpeechSynthesizer.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-02T23:39:14.000+0000", "updated": "2017-10-02T23:39:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }