[TIMOB-24393] Hyperloop: iOS - Logs indicate that frameworks are generated twice
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop, iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Jan Vennemann |
Created | 2017-02-09T13:47:34.000+0000 |
Updated | 2017-02-20T12:44:23.000+0000 |
Description
Checking the Hyperloop metabase generation docs, it seems like the frameworks (in detail: the umbrella classes) are generated twice:
[INFO] [Hyperloop] generating Foundation Foundation/Foundation
[INFO] [Hyperloop] generating Foundation Foundation/Foundation
[INFO] [Hyperloop] generating CFNetwork CFNetwork/CFNetwork
[INFO] [Hyperloop] generating CoreGraphics CoreGraphics/CoreGraphics
[INFO] [Hyperloop] generating CoreGraphics CoreGraphics/CoreGraphics
[INFO] [Hyperloop] generating UIKit UIKit/UIKit
[INFO] [Hyperloop] generating UIKit UIKit/UIKit
[INFO] [Hyperloop] generating CoreLocation CoreLocation/CoreLocation
[INFO] [Hyperloop] generating CoreLocation CoreLocation/CoreLocation
[INFO] [Hyperloop] generating CoreMedia CoreMedia/CoreMedia
[INFO] [Hyperloop] generating CoreText CoreText/CoreText
[INFO] [Hyperloop] generating CoreVideo CoreVideo/CoreVideo
[INFO] [Hyperloop] generating OpenGLES OpenGLES/OpenGLES
[INFO] [Hyperloop] generating Security Security/Security
[INFO] [Hyperloop] generating Security Security/Security
[INFO] [Hyperloop] generating CoreImage CoreImage/CoreImage
[INFO] [Hyperloop] generating CoreImage CoreImage/CoreImage
[INFO] [Hyperloop] generating LocalAuthentication LocalAuthentication/LocalAuthentication
[INFO] [Hyperloop] generating LocalAuthentication LocalAuthentication/LocalAuthentication
I thought that it may be a false positive, when it get's generated for different architectures, we should still check it to avoid glitches later. Note that this is not only on SDK 6, but also since the very first Hyperloop version, but I never filed a ticket for it until now. Also note that not all frameworks are generated twice. CFNetwork
CoreText
, CoreMedia
, CoreVideo
and OpenGLES
seem to be only generated once.
The log comes from [here](https://github.com/appcelerator/hyperloop.next/blob/master/metabase/ios/lib/generate/util.js#L869).
Run hyperloop-examples to reproduce.
This is due to generation of two separate files for most Frameworks, a JS wrapper and a *.m helper file to handle blocks and other things. The extension is omitted in the log message, otherwise it would read something like this:
Just a poorly designed logging message. I'll set the priority to low for this one so we can change the log message eventually.