Skip to content

Integrating apollo-ios-xcframework using bazel throws errors #3603

@reshumalik-afk

Description

@reshumalik-afk

Question

Hi Apollo Team,

I’m working on upgrading apollo-ios-xcframework from v1.18.0 to v2.0.2 in our project, which uses Bazel to fetch and build the framework. During the process, I’m encountering several errors related to the use of @_spi, for example:

error: protocol requirement 'init(_dataDict:)' cannot be declared '@_spi' without a default implementation in a protocol extension

I noticed that swiftLanguageMode in your Package.swift now includes both Swift 5 and 6. Our project is still using Swift 5, and I wanted to check whether this might be the reason for the errors, or if there’s a recommended Swift version for Apollo xcframework v2.x.

Any guidance on required Swift version compatibility or how to resolve these errors would be greatly appreciated.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions