SIMULATOR ON XCODE AIN'T WORKING

I've been using Xcode for like a month now. I am currently using it for learning session on Udemy for programme SwiftUI. Now I'm at session three where I am learning to build an Africa App. This is my third last session for the app and my simulator stops working as usual. After I finished entered all the codes correctly there's like a failure notice says that "It is unable to boot devise due to insufficient system resources." Some sort like that. Also says this "The current system settings are not sufficient to allow booting additional simulators: maxFiles: 12288, openFiles: 11176, enforcedFilesBuffer: 1868

Please see Simulator Help for information on adjusting resource limits."

Please help me fix these bug issues as soon as possible. Thank You For more reference ;

System Information

macOS Version 11.4 (Build 20F71)

Xcode 13.0 (19161.15) (Build 13A5154h)

Timestamp: 2021-07-19T23:35:33+08:00

Did you reboot your system, clean the Build folder and restart the Simulator/Xcode? This may help, but im not sure.

I finished entered all the codes correctly

You don't show code, it is hard to say. But the problem could be that you have created a recursive call, causing infinite loop that finally exceed system resources.

We would need to see the code to confirm this hypothesis.

SIMULATOR ON XCODE AIN'T WORKING
 
 
Q