Skip to content

Swift header file not created correctly when building with Xcode 10.2 #58

Closed
@Alexs1987

Description

@Alexs1987

Swift 5 seems to have changed the format of the generated Swift header file by adding the following conditionals dependent on the architecture:

#if 0
#elif defined(__arm64__) && __arm64__
...
#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
...

When building the iOS platform with cocoapods-binary the generated Swift header file only has __arm64__ and __ARM_ARCH_7A__ but does not have any conditionals for the simulator architectures and therefore the Swift parts of the framework can't be used by Objective C code in the app.

Similar issue in Carthage - Carthage/Carthage#2718

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions