triniwiz / nativescript-plugins

Apache License 2.0
78 stars 50 forks source link

[IOS] Image cache it : SDAnimatedImageView is not defined #193

Open kefahB opened 4 months ago

kefahB commented 4 months ago

@triniwiz , this occur on real device only!!!

Uncaught ReferenceError: SDAnimatedImageView is not defined
 at 
    createNativeView(file:///app/vendor.js:68193:28)
    at _setupUI(file:///app/vendor.js:30691:31)
    at (file:///app/vendor.js:30704:19)
    at eachChildView(file:///app/vendor.js:42250:28)
    at eachChild(file:///app/vendor.js:32948:14)
    at _setupUI(file:///app/vendor.js:30703:14)
    at (file:///app/vendor.js:30704:19)
    at eachChildView(file:///app/vendor.js:42250:28)
    at eachChild(file:///app/vendor.js:32948:14)
    at _setupUI(file:///app/vendor.js:30703:14)
    at (file:///app/vendor.js:30704:19)
    at eachChildView(file:///app/vendor.js:27696:13)
    at eachChild(file:///app/vendor.js:32948:14)
    at _setupUI(file:///app/vendor.js:30703:14)
    at (file:///app/vendor.js:30704:19)
    at eachChildView(file:///app/vendor.js:42250:28)
    at eachChild(file:///app/vendor.js:32948:14)
    at _setupUI(file:///app/vendor.js:30703:14)
    at (file:///app/vendor.js:30704:19)
    at eachChildView(file:///app/vendor.js:27696:13)
    at eachChildView(file:///app/vendor.js:45017:15)
    at eachChild(file:///app/vendor.js:32948:14)
    at _setupUI(file:///app/vendor.js:30703:14)
    at _addViewCore(file:///app/vendor.js:30550:18)
    at _addView(file:///app/vendor.js:30538:14)
    at UIViewControllerImpl.viewWillAppear(file:///app/vendor.js:44403:27)
', reason: '(null)'
*** First throw call stack:
(0x1addfe678 0x1a60a7c80 0x103e33d38 0x1038ecf50 0x1038eeb34 0x1038fefec 0x1038feba0 0x1add48f9c 0x1add45ca8 0x1add453f8 0x1f12fb4f8 0x1b016b8a0 0x1b016aedc 0x103e40044 0x103e3e710 0x103e25e4c 0x103df511c 0x103e2f740 0x10094027c 0x1d0aaedcc)
libc++abi: terminating due to uncaught exception of type NSException
justinbeatz commented 4 months ago

Is there any news about this issue, I also have the same error.

kefahB commented 4 months ago

Not yet, use nativescript-community/image instead it cache image by default

nikoTM commented 3 months ago

https://github.com/NativeScript/ios/commit/0d52056fdb102f40887abd47c9bc2af5f3cca94e

This solution provided by @triniwiz in the NativeScript discord worked for me as a temporary workaround (manually editing the python files locally) until it makes into the release.

imperatormk commented 20 hours ago

@triniwiz Please make this happen!