bradleygore / nativescript-textinputlayout

Android Material Design TextInputLayout for NativeScript
36 stars 14 forks source link

iOS: Can't find variable: SkyFloatingLabelTextField #15

Closed Skintillion closed 6 years ago

Skintillion commented 6 years ago
1   0x112795d4b NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
2   0x112e3928e ffi_closure_unix64_inner
3   0x112e39bd2 ffi_closure_unix64
4   0x113f61e31 -[UIViewController __viewWillAppear:]
5   0x113fa37b2 -[UINavigationController _startTransition:fromViewController:toViewController:]
6   0x113fa463f -[UINavigationController _startDeferredTransitionIfNeeded:]
7   0x113fa58c3 -[UINavigationController __viewWillLayoutSubviews]
8   0x1141fea49 -[UILayoutContainerView layoutSubviews]
9   0x113e876f5 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
10  0x113b303ee -[CALayer layoutSublayers]
11  0x113b344dd CA::Layer::layout_if_needed(CA::Transaction*)
12  0x113abcded CA::Context::commit_transaction(CA::Transaction*)
13  0x113ae8704 CA::Transaction::commit()
14  0x113dd1d3a __34-[UIApplication _firstCommitBlock]_block_invoke_2
15  0x1172a718c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
16  0x11728b96b __CFRunLoopDoBlocks
17  0x11728b144 __CFRunLoopRun
18  0x11728a9b9 CFRunLoopRunSpecific
19  0x1193439c6 GSEventRunModal
20  0x113db65e8 UIApplicationMain
21  0x112e39a2d ffi_call_unix64
22  0x134857330
file:///app/tns_modules/nativescript-textinputlayout/textInputLayout.js:81:45: JS ERROR ReferenceError: Can't find variable: SkyFloatingLabelTextField

If I remove the elements from the page, it loads fine.

I tried adding

pod 'SkyFloatingLabelTextField', '~> 3.2.0'

to the podfile and running pod install, but it still cannot find it.

Skintillion commented 6 years ago

tns platform remove and add ios didn't change anything.

bradleygore commented 6 years ago

See #11 - another user found that the pod needed updated. Hopefully soon will get around to updating the repo.

Skintillion commented 6 years ago

Thanks for replying

Mathijs003 commented 6 years ago

I got the same error using nativescript-textinputlayout@2.0.2 that imports pod 'SkyFloatingLabelTextField', '~> 3.3.0' as mentioned in the reference. Also using swift 3.0.

I would like to reopen this issue, anyone got an idea?

bradleygore commented 6 years ago

@Mathijs003 - does the demo project work for you?