[TIMOB-25554] Hyperloop: iOS - Wrong header include with Swift frameworks
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-28T09:44:10.000+0000 |
Affected Version/s | Hyperloop 2.0.0, Hyperloop 3.0.0 |
Fix Version/s | Hyperloop 3.0.1 |
Components | Hyperloop, iOS |
Labels | n/a |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2017-11-23T16:18:55.000+0000 |
Updated | 2018-08-06T17:49:17.000+0000 |
Description
Swift based Frameworks that expose an Objective-C interface generate a wrong header include when using blocks or custom classes like delegates.
*Steps to reproduce the behavior*
* Checkout https://github.com/appcelerator/hyperloop-examples/pull/63
* Run using
appc run -p ios -l trace
*Actual behavior*
The build fails with the following message:
[TRACE] /Users/hknoechel/Documents/Apps/hyperloop-examples/build/hyperloop/ios/js/hyperloop/custom.m:13:9: fatal error: 'ImagePicker/ImagePicker.h' file not found
[TRACE] #import <ImagePicker/ImagePicker.h>
[TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[TRACE] 1 error generated.
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] CompileC build/Intermediates/Hyperloop_Sample.build/Debug-iphonesimulator/Hyperloop_Sample.build/Objects-normal/x86_64/custom.o /Users/hknoechel/Documents/Apps/hyperloop-examples/build/hyperloop/ios/js/hyperloop/custom.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] (1 failure)
*Expected behavior*
Build is successful and without any errors.
PR: https://github.com/appcelerator/hyperloop.next/pull/264
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.