Skip to content

bazel build //tests/ios/xcframeworks/Basic:xcframeworks is failing #720

@qyang-nj

Description

@qyang-nj

This is on the latest master branch. bazel build //tests/ios/xcframeworks/Basic:xcframeworks is failing with the following error.

tests/ios/xcframeworks/Basic/Sources/Foo.swift:6:16: error: cannot find 'FooDynamic' in scope
    let foo1 = FooDynamic(num: 9000)
               ^~~~~~~~~~
tests/ios/xcframeworks/Basic/Sources/Foo.swift:9:16: error: cannot find 'FooStatic' in scope
    let foo2 = FooStatic(num: 9000)
               ^~~~~~~~~
Target //tests/ios/xcframeworks/Basic:xcframeworks failed to build

Similarly, bazel build //tests/ios/xcframeworks/Basic:XCFrameworksApp fails on M1 laptop or with --cpu=ios_sim_arm64 option.

ld: 14 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in child process '/usr/bin/xcrun'. 1
Target //tests/ios/xcframeworks/Basic:XCFrameworksApp failed to build

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