Skip to content

[SR-11704] Swift 5.1.2 (Xcode 11.2) cannot import framework that have swiftinterface built on Swift 5.1 (Xcode 11.1) #54112

@swift-ci

Description

@swift-ci
Previous ID SR-11704
Radar rdar://problem/56923079
Original Reporter taiki komaba (JIRA User)
Type Bug
Environment

macOS 10.14.6

Xcode 11.1 (11A1027) and 11.2 (11B52)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, LibraryEvolution
Assignee None
Priority Medium

md5: f1ed38a9dc02b014c38a882d29cd14c2

Issue Description:

I built framework with `BUILD_LIBRARY_FOR_DISTRIBUTION` parameter to support module stability on Swift 5.1.

But in Swift 5.1.2, cannot import that framework with below errors in swiftinterface file.

  • Failed to load module 'Eureka'

  • Unknown attribute '_staticInitializeObjCMetadata'

  • Redundant conformance of 'AreaRow<Cell>' to protocol 'FormatterConformance'

Reproducible project

https://github.com/r-plus/modulestabilitytest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselflibrary evolutionFeature: library evolution (umbrella feature for features that facilitate resilient libraries)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions