WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

apple_framework copies .swiftmodule files into app bundle when used with dynamic vendored_xcframeworks #887

@vakhidbetrakhmadov

Description

@vakhidbetrakhmadov

Hi,

apple_framework copies .swiftmodule files into app bundle when used with dynamic vendored_xcframeworks.

This seems to be unnecessary.

This can be validate by running the following commands on latest master

$ bazelisk build //tests/ios/xcframeworks/Basic:XCFrameworksApp --apple_platform_type=ios
...
INFO: Build completed successfully, 1 total action
$ cp bazel-bin/tests/ios/xcframeworks/Basic/XCFrameworksApp.ipa XCFrameworksApp.zip
$ unzip -qq XCFrameworksApp.zip
find Payload/XCFrameworksApp.app -name '*.swiftmodule'
Payload/XCFrameworksApp.app/Frameworks/BasicXCFrameworkDynamic.framework/Modules/BasicXCFrameworkDynamic.swiftmodule

Furthermore when building with xcodebuild, .swiftmodule are never copied into app bundle.

This can be validate by building the following example project.

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