Hey Fellow Community members. I have a very repetitive bug that annoys me every time I try to create a new app. I am currently on module 4 of Chris’ iOS foundations course, and I have paused my learning in lesson 10. However, this error has got nothing to do with the course, its something I encountered while trying to create a basic app that displays the famous food dishes around the world in a list, and when clicked on the list, it takes the user to a detailed view displaying the dish origin, cuisine, and a brief description of the dish. But whenever I am adding something either to my View-model or my view, and trying to preview how the data looks in the canvas, the app is crashing…and I am getting the error, as “could not parse JSON data in scope”. Will provide the screenshot here:-
The Model of my JSON data:
The Extension Bundle for Parsing the JSON data:
The ViewModel of JSON data, which when I am trying to preview on my canvas, app is crashing:
The View (ContentView) of my app (keeps crashing whenever I hit preview):
The Crash Log:
These are the Bugs! I humbly request anyone viewing this to help me out, since I am not able to proceed forward with the rest of the course until this problem is sorted out. I asked the same question before regarding this app crash on this same “App Development”, under “Module 4, Lesson 5”, but I did not receive an answer…therefore hoping for some help this time around. Thank you!