Bi-directional interop between objc and swift does not work in XCTest targets
| Originator: | michele.titolo | ||
| Number: | rdar://24200114 | Date Originated: | 1/14/16 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: |
Summary: When working in mixed language test targets, the test target can either use @objc or import Tests-Swift.h, but not both. When attempting to do both an import is added to the generated Test-Swift header that throws a module not found error. Steps to Reproduce: 1. Open sample project 2. Run `testAllowedIntoTheBall` in TestInteropIssueTests.swift 3. Build. 4. See build fail 5. Comment out #import "TestInteropIssueTests-Swift.h" in AnotherSetOfTests.m 6. See build succeed Expected Results: I expect to be able to use both @objc and Tests-Swift.h to test my mixed objc and swift codebase. Actual Results: I can only use interop in one direction. Version: Xcode Version 7.2 (7C68) & OS X 10.11.2 (15C50)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!