Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25554] Hyperloop: iOS - Wrong header include with Swift frameworks

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-11-28T09:44:10.000+0000
Affected Version/sHyperloop 2.0.0, Hyperloop 3.0.0
Fix Version/sHyperloop 3.0.1
ComponentsHyperloop, iOS
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2017-11-23T16:18:55.000+0000
Updated2018-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.

Comments

  1. Jan Vennemann 2017-11-23

    PR: https://github.com/appcelerator/hyperloop.next/pull/264
  2. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source