This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
Copy swiftbuild .bundle resource folders to the device for skip android test - #277
Merged
marcprux merged 1 commit intoSep 19, 2026
Conversation
…id test The native SwiftPM engine emits resource folders as <package>_<target>.resources and skip android test pushes those to the device. The swiftbuild engine (the Swift 6.4 default) emits <package>_<target>.bundle instead, and its generated Bundle.module accessor looks for that name next to the executable, so a test that touches Bundle.module trapped on the device: resource_bundle_accessor.swift:44: Fatal error: unable to find bundle named polymarket-shared_AppData Push .bundle folders alongside .resources so both layouts run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With Swift 6.4,
swift builddefaults to theswiftbuildengine.skip android testalready handles its executable layout (*-test-runner+ companion.so), but resource folders still follow the native engine's naming: only<package>_<target>.resourcesdirectories are pushed to the device. swiftbuild emits<package>_<target>.bundledirectories instead, and theBundle.moduleaccessor it generates resolvesBundle.main.bundleURL/<name>.bundle. Any test that touchesBundle.module(fixtures,String(localized:)) therefore traps on the device:Observed with skip 1.9.10, Swift 6.4.0 Android SDK,
skip android test --package-path <bridged multi-module package>on a macOS host without--build-system native.Change
Include
.bundledirectories in the resource folders transferred to the staging directory, alongside.resources. One filter change inAndroidCommand.swift; the push logic is unchanged.Verified
Build products under
.build/out/Products/Debug-android-aarch64/contain the expectedpolymarket-shared_AppData.bundle(withLocalizable.xcstrings) etc.; pushing them next to the runner is exactly what the generated accessor expects. Until this lands we pass them via--copyfrom a wrapper script, which works.