[TIMOB-25432] Hyperloop: iOS - Cannot find class with name: SFSpeechRecognizer when placed in app/lib
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-10-25T16:03:42.000+0000 |
Affected Version/s | Hyperloop 2.2.0 |
Fix Version/s | Hyperloop 2.2.1 |
Components | Hyperloop, iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Jan Vennemann |
Created | 2017-10-24T07:55:20.000+0000 |
Updated | 2017-10-25T21:36:34.000+0000 |
Description
From the community (opening just in case):
[ERROR] Cannot find class with name: SFSpeechRecognizer
[ERROR] Script Error {
[ERROR] column = 32;
[ERROR] description = “Cannot find class with name: SFSpeechRecognizer”;
[ERROR] line = 138;
[ERROR] message = “Cannot find class with name: SFSpeechRecognizer”;
[ERROR] name = ClassNotFound;
Try it out with the [Ti.Speech](https://github.com/hyperloop-modules/ti.speech) project.
*EDIT*: It seems to works when the class is not instantiated in app/lib
but in app/controllers/index.js
, so probably our metabase cannt find declarations anymore when placed in app/lib.
Testing-steps already: * Clone the ti.speech sample-project [here](https://github.com/hyperloop-modules/ti.speech) * Confirm it does not work with Hyperloop 2.2.0 * Switch to Hyperloop 2.2.1 and confirm it does work
Confirmed. Here's the nativeStack portion of the error below the error Hans linked:
Closely related but separate ticket about same codebase but different HyperLoop and iOS version: TIMOB-25440
PR (master): https://github.com/appcelerator/hyperloop.next/pull/250 PR (2_2_X): https://github.com/appcelerator/hyperloop.next/pull/251
Verified with Hyperloop 2.2.1beta2. Ti.Speech module no longer throws the error. Tested with the provided module's example project as well as several test projects I have that contain various modules.