Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24198

Hyperloop: iOS - API availability annotation parsed incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Hyperloop 2.0.0
    • Fix Version/s: Hyperloop 2.0.1
    • Component/s: Hyperloop, iOS
    • Labels:
    • Environment:

      appc-cli 6.0.0
      TiSDK 6.0.0
      Hyperloop 2.0.0

    • Sprint:
      2017 Sprint 02 Tooling

      Description

      The Hyperloop metabase is missing classes annotated with a of API_AVAILABLE and API_UNAVAILABLE and which are not explicitly including the Foundation framework.

      For example the the INPreferences class of the new Intents framework is annotated with API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macosx) and won't be processed by the metabase parser.

      Steps to reproduce the behavior
      1. Create a new hyperloop enabled application with appc new -t app
      2. Make a require to the INPreference class: var INPreferences = require('Intents/INPreferences');
      3. Run the app with appc run -p ios

      Actual behavior
      The following error is thrown:

      [ERROR] Script Error Couldn't find module: /hyperloop/intents/inpreferences for architecture: x86_64

      Expected behavior
      The app launches without errors.

      Additional notes
      The issue is solved by explicitly requiring the Foundation framework, forcing it to be included during metabase generation.

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              jvennemann Jan Vennemann
              Reviewer:
              Hans Knöchel
              Tester:
              Josh Longton
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10323
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code