Get linking error on new mac swift project template by Apple

Ld /Users/nikiv/Library/Developer/Xcode/DerivedData/macos-aznonwallaljezgrfizaxbbcqbnw/Build/Intermediates.noindex/Playgrounds/Intermediates.noindex/macos.build/Debug/macos.build/Objects-normal/arm64/Binary/macos normal arm64 (in target 'macos' from project 'macos')
    cd /Users/nikiv/src/swift/macos

Not sure how to fix this or why it happens