Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25403] Hyperloop: iOS - Can't find blocks from typedefs

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-10-18T15:48:17.000+0000
Affected Version/sHyperloop 2.2.0
Fix Version/sHyperloop 2.2.0
ComponentsHyperloop, iOS
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2017-10-17T12:01:34.000+0000
Updated2017-10-19T20:46:04.000+0000

Description

*Steps to reproduce the behavior*

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

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);
});

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.

Comments

  1. Jan Vennemann 2017-10-18

    PR: https://github.com/appcelerator/hyperloop.next/pull/237
  2. Abir Mukherjee 2017-10-19

    Node Version: 6.11.4 NPM Version: 3.10.10 Mac OS: 10.13 Appc CLI: 6.3.0-master.15 Appc CLI NPM: 4.2.10-2 Titanium SDK version: 6.3.0 RC Appcelerator Studio vers 4.10.0 Hyperloop 2.2.0 RC 5 iOS 11.0 on iPhone 7 Plus Xcode 9.0 Validated the fix. No errors were seen. Additionally, when I launched the app, I saw the expected debug message.

JSON Source