I'm getting some errors when building with my project using swift-5.10-jammy image that types have moved to FoundationNetworking. This is great, but Swift in Xcode currently doesn't know about FoundationNetworking. Is there a better way to make code work cross-platform than using canImport?

#if canImport(FoundationNetworking)
  import FoundationNetworking
#endif
1 Like

Unfortunately not.