XCTest.framework is no longer available to non-test bundle targets
| Originator: | luc-olivier.dumais-blais | ||
| Number: | rdar://17982515 | Date Originated: | 11-Aug-2014 05:36 PM |
| Status: | Closed | Resolved: | |
| Product: | Developer Tools | Product Version: | Beta 5 (6.0 6A279r) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
Non-test bundle targets that were linking to XCTest.framework on Xcode 5 are no longer building using Xcode 6.
Steps to Reproduce:
1. Open the attached project in Xcode 5.1.1
2. Build the "TestRadar" target
3. Close Xcode and reopen the attached project in Xcode 6.0
4. Build the "TestRadar" target
Expected Results:
The TestRadar target should build without errors on both Xcode 5.1.1 and Xcode 6.0.
Actual Results:
The TestRadar target fails to build on Xcode 6.0. ('XCTest/XCTest.h' file not found @ TestRadar.h:10)
Version:
Xcode 6 Beta 5 (6.0 6A279r)
OS X Mavericks (10.9.3 13D65)
Notes:
Adding the following to FRAMEWORK_SEARCH_PATHS of the "TestRadar" target fixed the issue
"$(PLATFORM_DIR)/Developer/Library/Frameworks"
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!
Reply from Apple
Engineering has determined that this issue behaves as intended based on the following:
This is expected, XCTest is now in $(PLATFORM_DIR)/Developer/Library/Frameworks. Test targets automatically have this in their Framework Search Paths, non-test targets need to add it.
Please update your bug report to let us know if this is still an issue for you.