[TIMOB-25403] Hyperloop: iOS - Can't find blocks from typedefs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-10-18T15:48:17.000+0000 |
Affected Version/s | Hyperloop 2.2.0 |
Fix Version/s | Hyperloop 2.2.0 |
Components | Hyperloop, iOS |
Labels | n/a |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2017-10-17T12:01:34.000+0000 |
Updated | 2017-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
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.
PR: https://github.com/appcelerator/hyperloop.next/pull/237
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.