Duplicate of Last lines of the Xcode's build log: Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Closing it here, answered there