[TIMOB-25588] Hyperloop: iOS: Cannnot find class with name
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | n/a |
Reporter | Brian García |
Assignee | Jan Vennemann |
Created | 2017-12-07T15:48:59.000+0000 |
Updated | 2019-01-18T20:02:40.000+0000 |
Description
When using material pod ([https://github.com/CosmicMind/Material]) and trying the following code:
var Card = require("Material/Card");
var Toolbar = require("Material/Toolbar");
var IconButton = require("Material/IconButton");
var Bar = require("Material/Bar");
var UIColor = require('UIKit/UIColor');
var Material = require("Material/Material");
var View = require("UIKit/UIView");
var CardView = require("Material/View");
var FlatButton = require("Material/FlatButton");
var CGRectMake = require('CoreGraphics').CGRectMake;
var btn = new FlatButton();
btn.title = "Flat Button";
btn.width = 220;
btn.height = 45;
$.index.add(btn);
fails with
[ERROR] Cannot find class with name: FlatButton
[ERROR] Script Error {
[ERROR] column = 32;
[ERROR] description = "Cannot find class with name: FlatButton";
[ERROR] line = 108;
[ERROR] message = "Cannot find class with name: FlatButton";
[ERROR] name = ClassNotFound;
[ERROR] nativeStack = "1 libobjc.A.dylib 0x0000000113a
30f41 objc_exception_throw + 48\n2 materiallib 0x00000
0010bf2e3e2 -[HyperloopClass initWithClassName:alloc:init:args:] + 386\n3 mate
riallib 0x000000010bf206b8 NewProxy + 1416\n4 JavaScri
ptCore 0x000000010cc72505 _ZN3JSC19APICallbackFunction4call
INS_18JSCallbackFunctionEEExPNS_9ExecStateE + 501\n5 JavaScriptCore
0x000000010cd81d21 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11Instr
uctionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 577\n6
JavaScriptCore 0x000000010cd8af9d llint_entry + 27269\n7
JavaScriptCore 0x000000010cd8afab llint_entry + 27283\n8
JavaScriptCore 0x000000010cd8b2e6 llint_entry + 28110\n9
JavaScriptCore 0x000000010cd8b2e6 llint_entry + 28110\n1
0 JavaScriptCore 0x000000010cd8afab llint_entry + 27283\n1
1 JavaScriptCore 0x000000010cd84330 vmEntryToJavaScript +
304\n12 JavaScriptCore 0x000000010cc1530f _ZN3JSC7JITCode7
executeEPNS_2VMEPNS_14ProtoCallFrameE + 127\n13 JavaScriptCore
0x000000010cbdb5d3 _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEP
NS_9ExecStateEPNS_8JSObjectE + 13075\n14 JavaScriptCore 0x
000000010c9290ff _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueER
N3WTF8NakedPtrINS_9ExceptionEEE + 303\n15 JavaScriptCore 0
x000000010cc705f0 JSEvaluateScript + 432\n16 materiallib
0x000000010bc5fe71 -[KrollBridge evalFileOnThread:context:] + 1281\n17 materi
allib 0x000000010bc65c1c -[KrollInvocation invoke:] + 12
4\n18 materiallib 0x000000010bc670ef -[KrollContext inv
oke:] + 159\n19 materiallib 0x000000010bc67485 -[KrollC
ontext invokeOnThread:method:withObject:callback:selector:] + 165\n20 materiall
ib 0x000000010bc5ffe3 -[KrollBridge evalFile:callback:se
lector:] + 115\n21 materiallib 0x000000010bc60e12 -[Kro
llBridge didStartNewContext:] + 2498\n22 materiallib 0x
000000010bc67d5b -[KrollContext main] + 1819\n23 materiallib
0x000000010bc66ec6 __21-[KrollContext start]_block_invoke + 38\n24 libdis
patch.dylib 0x00000001169b2273 _dispatch_call_block_and_releas
e + 12\n25 libdispatch.dylib 0x00000001169b32b5 _dispatch_cli
ent_callout + 8\n26 libdispatch.dylib 0x00000001169bd496 _dis
patch_main_queue_callback_4CF + 1260\n27 CoreFoundation 0x
0000000114a41ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\n28 Cor
eFoundation 0x0000000114a06592 __CFRunLoopRun + 2402\n29 C
oreFoundation 0x0000000114a059b9 CFRunLoopRunSpecific + 409
\n30 GraphicsServices 0x00000001189d39c6 GSEventRunModal + 6
2\n31 UIKit 0x000000010e81d5e8 UIApplicationMain
+ 159\n32 materiallib 0x000000010bc4cef4 main + 100\n33
libdyld.dylib 0x0000000116a27d81 start + 1";
[ERROR] sourceURL = "file:///Users/Brian/Library/Developer/CoreSimulator/Dev
ices/C481AD0F-F846-41BE-9D03-CFEEF1811F09/data/Containers/Bundle/Application/6B7
71C23-F3BC-4362-BEAC-A5402D3F83C7/materiallib.app/hyperloop/material/flatbutton.
js";
[ERROR] }
Attachments
File | Date | Size |
---|---|---|
build_iphone.log | 2017-12-07T15:46:50.000+0000 | 1257703 |
metabase-8.0-iphonesimulator-06f5cfc8db088e468d43ab8a4125c15e.h | 2017-12-07T15:46:55.000+0000 | 19311 |
metabase-8.0-iphonesimulator-c248691bcf3bdb854a7b282d1eb47a9d.h | 2017-12-07T15:46:56.000+0000 | 19125 |
metabase-cocoapods-bc60abbc4843bc69bcf166484785ab53.json | 2017-12-07T15:46:56.000+0000 | 10683 |
metabase-mappings-iphonesimulator-8.0.json | 2017-12-07T15:46:58.000+0000 | 693874 |
metadata-framework-availability.json | 2017-12-07T15:46:55.000+0000 | 2072 |
symbol_references.json | 2017-12-07T15:46:55.000+0000 | 23893 |
Any update on this? it's a blocking issue for me right now
Also happening with: [FluidSlider](https://github.com/Ramotion/fluid-slider)
Possible duplicate of TIMOB-26697
tested again with Hyperloop 4.0.1 and this is the new error stacktrace: