Skip to content

Fix Xcode test file references and Bundle.module compatibility#1192

Merged
wongzigii merged 2 commits into
SwiftyJSON:masterfrom
Yoojin99:codex/fix-tests-group-path
Mar 4, 2026
Merged

Fix Xcode test file references and Bundle.module compatibility#1192
wongzigii merged 2 commits into
SwiftyJSON:masterfrom
Yoojin99:codex/fix-tests-group-path

Conversation

@Yoojin99
Copy link
Copy Markdown
Contributor

Summary

This PR fixes two issues affecting tests in Xcode/workspace builds:

  1. Broken red test file references in Xcode due to an incorrect Tests group path.
  2. Bundle.module build error in Xcode project tests (Type 'Bundle' has no member 'module').

Changes

  • Updated project.pbxproj : Changed Tests group path from:
    • Tests/Tes -> Tests/SwiftJSONTests
  • Tests : Added conditional bundle lookup
    • SwiftPM : Bundle.module (not changed)
    • Xcode project target : Bundle(for: <TestClass>.self)

Result

  • Test files under Tests/SwiftJSONTests are resolved correctly in Xcode.
  • Tests compile/run in both SwiftPM CLI and Xcode project environments

@wongzigii wongzigii merged commit 8805b54 into SwiftyJSON:master Mar 4, 2026
1 check passed
@wongzigii
Copy link
Copy Markdown
Member

Thanks @Yoojin99 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants