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

Hyperloop: iOS - Can't find blocks from typedefs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Hyperloop 2.2.0
    • Fix Version/s: Hyperloop 2.2.0
    • Component/s: Hyperloop, iOS
    • Labels:
      None
    • Environment:

      TiSDK 6.2.2.GA
      Hyperloop 2.2.0 RC3

    • Story Points:
      5

      Description

      Steps to reproduce the behavior

      1. Create a new app, download the Contentful SDK from http://static.contentful.com/downloads/iOS/ContentfulDeliveryAPI-1.10.4.zip and place it under app/platform/ios
      2. Add the following sample code to your app

        var CDAClient = require('ContentfulDeliveryAPI/CDAClient');
        var client = CDAClient.cast(CDAClient.alloc().initWithSpaceKeyAccessToken('foo', 'bar'));
        client.fetchAssetWithIdentifierSuccessFailure('key', function(response, entry) {
        	Ti.API.debug(entry.fields);
        }, function(response, error) {
        	Ti.API.debug(error.localizedDescription);
        });
        

      3. Build and run your app

      Actual behavior
      The build fails with the following error message:

      Couldn't find block with signature: void (^)(CDAResponse *, CDAAsset *) for framework: ContentfulDeliveryAPI
      

      Expected behavior
      The build should be successful and the app should run without problems. You should see a debug message The access token you sent could not be found or is invalid., indicating that the error block was successfully called.

        Attachments

          Activity

            People

            • Assignee:
              jvennemann Jan Vennemann
              Reporter:
              jvennemann Jan Vennemann
              Reviewer:
              Hans Knöchel
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code