Skip to content

iOS: build error due to swift version conflict #14140

@m1ga

Description

@m1ga

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

I've simply created a new empty iOS module and tried to build it. When looking at the trace log I can see:

error: failed to build module 'TitaniumKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)', while this compiler is 'Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)'). Please select a toolchain which matches the SDK.

Other users had similar issues when building iOS modules too. Is there a way to get rid of it without searching a matching Xcode version?

https://stackoverflow.com/questions/58654714/module-compiled-with-swift-5-1-cannot-be-imported-by-the-swift-5-1-2-compiler/58656323#58656323 might be a solution (if not already done)

Expected Behavior

build a module without Xcode/swift error

Actual behavior

error building

Reproducible sample

Steps to reproduce

  • create a new iOS swift module
  • try to build it
  • 12.5.0.GA
  • Xcode Version 15.1 (15C65)

Platform

iOS

SDK version you are using

12.5.0

Alloy version you are using

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiosneeds triageThis issue hasn't been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions