"'Socket' inherits from itself" in Xcode 13

Hello folks,

I'm working on a project that was built in Xcode 12.2. When trying to compile on Xcode13, I'm getting:

.../MyProject/SpeedTestFrameworks/Socket.framework/Modules/Socket.swiftmodule/arm64-apple-ios.swiftinterface:7:49: 'Socket' inherits from itself

This is coming from the following line in the swiftinterface file

_hasMissingDesignatedInitializers public class Socket : Socket.SocketReader, Socket.SocketWriter {

To be totally honest, I don't even know what this file is, but there are a number of problems related to this in the file. I'm also seeing the following

.../MyProject/SpeedTestFrameworks/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftinterface:11:8: Failed to build module 'Socket'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)', while this compiler is 'Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)'). Please select a toolchain which matches the SDK.

Ok, I think this makes sense. Whatever the SpeedChecker thing is seems to be out of date because it was built in an older version of swift. But now the real question. How do I fix it? I did not create this application, and I'm not even sure this is an issue with swift itself, but with the xcode project. Just wondering if someone can point me in the right direction.

Cheers,
Dusty

Seems you can get an updated version from GitHub GitHub - speedchecker/speedchecker-sdk-ios

1 Like

Ah, yep. Thanks for that. Dropping that in fixed the errors.