Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Hyperloop 2.2.0
-
Component/s: Hyperloop
-
Labels:
-
Environment:
iOS 10.2
Ti SDK 6.0.2.GA
Xcode 8.2.1
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.