TobiasHennig / nativescript-toast

A NativeScript Toast Plugin for Android and iOS apps.
MIT License
67 stars 19 forks source link

Toast.alloc().initWithTextDelayDuration is not a function. #40

Open nericode opened 5 years ago

nericode commented 5 years ago

This error is in iOS with nativescript 5.1.0+

ERROR TypeError: Toast.alloc().initWithTextDelayDuration is not a function. (In 'Toast.alloc().initWithTextDelayDuration(text,0,d)', 'Toast.alloc().initWithTextDelayDuration' is undefined)

[UPDATE] The error is the version: 2.0.0

The error not exists in version: 1.4.6

razorsyntax commented 5 years ago

Getting the exact same error here as well.

pkubasiak commented 5 years ago

same

alexmeia commented 5 years ago

Same problem. Rolled back to version 1.4.6 for now.

ShaimaaKhamees commented 5 years ago

the same here i get this error and my app was crashed

pekevski commented 5 years ago

Could it be that it is using pod SBToaster where as v1.4.6 is using pod Toaster??

I moved to the nativescript-toasty plugin and it works fine.

Upd4ting commented 5 years ago

Any news?

konradkluzniak commented 5 years ago

Same issue here. Rolling back to 1.4.6

ryanlangton commented 5 years ago

Same issue here, nativescript 5.1.0 If I downgrade nativescript-toast to 1.4.6 I get this error SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Toaster')

javierpal commented 5 years ago

Same here.

AnastasiyaDemi commented 5 years ago

@ryanlangton same error for tns-ios v6.0.1: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Toaster')

leganz commented 5 years ago

Is there any news on this? Still getting this error message on ios

aquinn637 commented 4 years ago

I'm getting the same issue on NS 6:

CONSOLE ERROR [native code]: ERROR TypeError: Toast.alloc().initWithTextDelayDuration is not a function. (In 'Toast.alloc().initWithTextDelayDuration(text,0,d)', 'Toast.alloc().initWithTextDelayDuration' is undefined)

mreall commented 4 years ago

Same issue for me, too: NS6 on iOS. Has anyone figured out a way to get it to work without going back to v1.4.6?