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 from:
Am I doing something totally wrong?
Xcode version: 12.1 (12A7403) with Xcode 12.1 Toolchain
Source: Swift Questions