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

Originator:timothy.sanders
Number:rdar://17261352 Date Originated:2014-06-10
Status:Duplicate of 17184481 which is closed Resolved:2014-07-07
Product:Xcode Product Version:6.0 beta 1 6A215l
Classification:Serious Bug Reproducible:Always
 
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.

2014-06-17: I tested with beta 2 and the behavior is unchanged. Here's what I appended to the report:

(I realize this is a dupe, but this is the bug I can edit, so here's where I'll post info :-))

I checked with Xcode beta 2 (build 6A216f) and the behavior is the unchanged on Mavericks. I haven't updated my Yosemite drive yet.

2014-07-07 - Beta 3 of Xcode 6 runs iOS playgrounds on my Mavericks machine. I can't see the Radar this was marked as a dupe of (17184481) but that Radar appears to be closed now.

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!