You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SR-12912] Fix crash in test targets when accessing Bundle.module (#2817)
* SR-12912
Setting the path for Bundle.module fails in the case where the bundle is accessed during tests.
This uses the already derived bundlePath instead.
* Only use bundlePath when building a testTarget
* Updating this for discussion in PR. This hardcodes the test path as expected, however, when the target under test accesses Bundle.module, it fails for the same reason as before
* This prefers Bundle.main, but if it is inaccessible it falls back to the build output directory path.
* Cleaned up changes in BuildPlan.swift
Added passing integration test into TestToolTests.swift
Added failing integration test into BasicTests.swift
* Remove integration test from TestToolTests.swift
* Only instantiate Bundle for buildPath if main bundle is not found
0 commit comments