Xcode-beta (7A152u): Can’t Test WatchKit App or Framework

Number:rdar://21760513 Date Originated:09-Jul-2015 11:50 PM
Status:Duplicate/21395998/Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A152u)
Classification:Other Bug Reproducible:Always
In Xcode 7, you can’t make a unit testing target that targets a WatchKit 2 app or watchOS Framework.

Steps to Reproduce:
1. Create a WatchKit Extension in your iPhone app.
2. Create a new Unit Testing target.
3. Try to set the WatchKit Extension as the target of the Unit Testing target.

Expected Results:
You can unit test your watchOS app.

Actual Results:
You can’t choose the WatchKit Extension (or the watch app, for that matter) as the target of the test target.

Also not possible with WatchKit 1

UI Testing for the watch would be AMAZING.


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!