Reputation: 4678
I'm trying to get a Live View to work in a Swift Playground. Whenever I import the XCPlayground framework to execute the XCPShowView
function i get this error:
Playground execution failed: error: Couldn't lookup symbols:_CGPointMake
The error changes for a few other "symbols" as well, including CGRectMake
. I've tried clearing my Xcode beta 5 cache directory as well as re-installing Xcode.
Upvotes: 1
Views: 3243
Reputation: 530
Try with this: instead of using
CGSizeMake(200, 200)
use this (without the "Make")
CGSize(width: 200, height: 200)
The same with CGPointMake / CGPoint, CGRectMake/CGRect...
Upvotes: 2
Reputation: 151
I'm experimenting with sprite kit in a playground, and I had the same problem.
For me it helped with NSPoint(x:y:)
and NSRect(x:y:)
Upvotes: 0