Xcode: "<unknown>:0: error: cannot load module ‘main’ as ‘Swift’" upon trying to compile

Just started using Swift on Xcode. For some reason, anytime I want to compile, it shows the error: <unknown>:0: error: cannot load module ‘main’ as ‘Swift’ The only way I could find to fix it is to either clean build folder or delete build folder myself, then compile. The code I have is just changing […]

By Ranoiaetep
Categorised as swift, xcode, xcode12 Tagged , ,

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us