Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25440] Hyperloop: iOS - Cannot use version-specific API's on older devices

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-11-29T13:19:27.000+0000
Affected Version/sn/a
Fix Version/sHyperloop 2.2.3, Hyperloop 3.0.1
ComponentsHyperloop, iOS
Labelshyperloop, ios
Reportersteven.m.house
AssigneeJan Vennemann
Created2017-10-24T21:25:15.000+0000
Updated2018-08-06T17:49:17.000+0000

Description

Attachments

FileDateSize
[TIMOB-25432] Hyperloop- iOS - Cannot find class with name- SFSpeechRecognizer when placed in app-li….webloc2017-10-24T21:36:45.000+0000101
ios9SpeechTest_2017-10-24-152419_Stevens-MacBook-Pro.crash2017-10-24T21:22:08.000+000013054
ios9SpeechTest 2.zip2017-10-24T21:19:07.000+00009447759

Comments

  1. Hans Knöchel 2017-10-25

    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!
  2. Jan Vennemann 2017-11-21

    PR (master): https://github.com/appcelerator/hyperloop.next/pull/261 PR (2_2_X): https://github.com/appcelerator/hyperloop.next/pull/262
  3. Victor Vazquez Montero 2017-11-27

    [~jvennemann] Do we have an estimated timeline for when these will be released? Best regards, Victor Montero
  4. Hans Knöchel 2017-11-28

    [~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!
  5. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source