Skip to content

TalsecRuntime.xcframework incompatible with Xcode 26 / Swift 6.2 #198

@samumzizi

Description

@samumzizi

Environment

  • freerasp version: 7.5.0
  • Xcode: 26.3 (Build 17C529)
  • Swift: 6.2.4 (swiftlang-6.2.4.1.4)
  • iOS SDK: 26.2
  • Flutter: 3.41.4
  • Platform: macOS (Apple Silicon)

Problem

The vendored TalsecRuntime.xcframework shipped with freerasp 7.5.0 was built with Swift 6.1.2 (Xcode 16). When building on Xcode 26 (Swift 6.2), the .swiftinterface file fails to compile:

error: no such module 'TalsecRuntime.Private'

error: failed to build module 'TalsecRuntime'; this SDK is not supported by the compiler
(the SDK is built with 'Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)',
while this compiler is 'Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)').
Please select a toolchain which matches the SDK.

This surfaces as:

  • No type named 'RaspExecutionState' in module 'TalsecRuntime'
  • Type 'SecurityThreat' has no member 'timeSpoofing'

Root cause

Swift 6.2 cannot deserialize .swiftinterface files emitted by Swift 6.1. This is a known Apple toolchain behavior change (swiftlang/swift#84379).

Steps to reproduce

  1. Install Xcode 26 (any beta or release)
  2. Create a Flutter project with freerasp: ^7.5.0
  3. Run flutter build ios or flutter run targeting a physical device

Expected behavior

Build succeeds on Xcode 26.

Requested fix

Rebuild TalsecRuntime.xcframework using Xcode 26 / Swift 6.2 toolchain and publish an updated release.

Workaround

Pin to Xcode 16.x via sudo xcode-select --switch /Applications/Xcode-16.x.app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions