XCFramework requiring self when not needed?

I'm trying to create a Framework that I can use across platforms. I have successfully added the framework to a test app and this is what the test framework looks like.

import Foundation

public class HelloComputer {

    public func getHello() -> String {

        return "hello world"

    }
}

But when I import the framework this is what happens

Am I missing something? Why is it asking for a instance of its self?

Replies

Looks like all I needed to do was make it a class function.

public class func getHello()