# "'Socket' inherits from itself" in Xcode 13

**URL:** <https://forums.swift.org/t/socket-inherits-from-itself-in-xcode-13/53935>\
**Category:** Using Swift\
**Created:** [December 8, 2021, 9:38pm UTC](https://forums.swift.org/t/socket-inherits-from-itself-in-xcode-13/53935 "2021-12-08T21:38:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DustyDev](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DustyDev](https://forums.swift.org/u/DustyDev)\
**Post date:** [December 8, 2021, 9:38pm UTC](https://forums.swift.org/t/socket-inherits-from-itself-in-xcode-13/53935/1 "2021-12-08T21:38:53Z")

</div>

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

```swift
.../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

---

<div class="post-metadata">

**Author:** ![phoneyDev](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@phoneyDev](https://forums.swift.org/u/phoneyDev)\
**Post date:** [December 10, 2021, 12:56am UTC](https://forums.swift.org/t/socket-inherits-from-itself-in-xcode-13/53935/2 "2021-12-10T00:56:01Z")

</div>

Seems you can get an updated version from GitHub [GitHub - speedchecker/speedchecker-sdk-ios](https://github.com/speedchecker/speedchecker-sdk-ios)

---

<div class="post-metadata">

**Author:** ![DustyDev](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DustyDev](https://forums.swift.org/u/DustyDev)\
**Post date:** [December 10, 2021, 12:57am UTC](https://forums.swift.org/t/socket-inherits-from-itself-in-xcode-13/53935/3 "2021-12-10T00:57:54Z")

</div>

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