iOS Playground doesn't import UIKit properly on OS X Mavericks with Xcode 6 beta 1

Originator:me
Number:rdar://17262663 Date Originated:10-Jun-2014 08:08 PM
Status:Open Resolved:
Product:Developer Tools Product Version:6.0 6A215l
Classification:Serious Bug Reproducible:Always
 
This is a duplicate of rdar://17261352

Summary:
An iOS Playground can't declare objects of classes coming in from UIKit on my machine when running under OS X Mavericks. The same playground file works on the same machine & Xcode version when running the prerelease of Yosemite.

Steps to Reproduce:
1. Install Xcode beta (6A215l)
2. Open either of the attached playgrounds (UIColor is the simpler of two and is only two lines long.)
3. Open the Timeline assistant editor.

Expected Results:
The Table View playground should display the table. The UIColor playground should show a value display with a color swatch.

Actual Results:
Any UIKit object will be unresolved and cause a REPL error in the timeline. Here's a sample:

<REPL>:10:13: error: use of unresolved identifier 'UIColor'
let color = UIColor(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)

Version:
Xcode version 6.0, 6A215l. As I said above I'm not sure the exact Mavericks version number but I'm current on the updates. The Yosemite build that works is 10.10 (14A238x)

Notes:
I posted a bit about this at https://devforums.apple.com/message/980032#980032 . At least a few other users are having this problem.

Also, the import seems to not work properly. On Yosemite I don't have to import CoreGraphics but on Mavericks I can't declare CGPoint or CGRect structs unless I import CoreGraphics an addition to UIKit.

Configuration:
This testing is on my MacBookPro 10,1 (Retina, mid 2012 model) I'm writing this on my test install of Yosemite so I can't check my Mavericks version right now but it's current as of today (June 10).

Attachments:
'Table View.playground.zip' and 'UIColor Creation.playground.zip' were successfully uploaded.

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!