Loading Remote Image From Temp Directory Works in Simulator but not iOS Simulator or Device

Hi all,

I am trying to load remote images into rows in my tableView. I am able to download the images into the temp directory. I have even checked the folder in my computer. When I run the simulator, the app works perfectly, but when I try it out on the iOS simulator or on the device it manages the run the app up until the point were it tries to add the image to the row. 

Log: 

Apr 6 20:52:58 Kinans-MacBook-Pro.local chip\_in[545] \<Warning\>: Runtime error /Users/kinant/Documents/chip\_in/list\_scene.lua:73: attempt to index local 'image' (a nil value) stack traceback: /Users/kinant/Documents/chip\_in/list\_scene.lua:73: in function '\_onRowRender' ?: in function '\_createRow' ?: in function \<?:1116\> (tail call): ? /Users/kinant/Documents/chip\_in/list\_scene.lua:137: in function \</Users/kinant/Documents/chip\_in/list\_scene.lua:22\> ?: in function 'dispatchEvent' ?: in function 'gotoScene' /Users/kinant/Documents/chip\_in/main.lua:69: in function '\_onPress' ?: in function '\_setSelected' ?: in function \<?:569\> ?: in function \<?:218\>

So, I added the function to check if the file exists, and for some reason using that function made it work on the iOS simulator. I’m still very confused, but happy that it works :)!

So, I added the function to check if the file exists, and for some reason using that function made it work on the iOS simulator. I’m still very confused, but happy that it works :)!