[TIMOB-25440] Hyperloop: iOS - Cannot use version-specific API's on older devices
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-29T13:19:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Hyperloop 2.2.3, Hyperloop 3.0.1 |
Components | Hyperloop, iOS |
Labels | hyperloop, ios |
Reporter | steven.m.house |
Assignee | Jan Vennemann |
Created | 2017-10-24T21:25:15.000+0000 |
Updated | 2018-08-06T17:49:17.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
[TIMOB-25432] Hyperloop- iOS - Cannot find class with name- SFSpeechRecognizer when placed in app-li….webloc | 2017-10-24T21:36:45.000+0000 | 101 |
ios9SpeechTest_2017-10-24-152419_Stevens-MacBook-Pro.crash | 2017-10-24T21:22:08.000+0000 | 13054 |
ios9SpeechTest 2.zip | 2017-10-24T21:19:07.000+0000 | 9447759 |
This is a general issue where you cannot run version-specific code on older devices. Will move and rename it, thanks for reporting this! [~jvennemann] That's what we discussed a few days ago. I have no final plan for this, yet, but as the error occurs with referencing the iOS framework (not the actual API) that's only available in a certain version and higher (in this case: "Speech.framework", iOS 10+), we may be able to solve this by guarding the frameworks with their iOS version if their version is higher then the default one (e.g. 8.1 in our case). I could even think of a workaround: If we pass link the framework via the appc.js, we can pass linker-flags as well, so something like I've done in my [ARKit module](https://github.com/hansemannn/titanium-arkit/blob/master/module.xcconfig) maybe. Btw, this could eventually be a module-related issue as well, as we don't need the module.xcconfig there anymore and frameworks are linked automatically. If we can ensure to pass them to the correct architecture and version, we should be fine!
PR (master): https://github.com/appcelerator/hyperloop.next/pull/261 PR (2_2_X): https://github.com/appcelerator/hyperloop.next/pull/262
[~jvennemann] Do we have an estimated timeline for when these will be released? Best regards, Victor Montero
[~vvazquezmontero] Hyperloop 2.2.3 is released [since last week](https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v2.2.3) already, but it hasn't been pushed to the platform so far. It will be published this week!
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.