Messages in Swift Playgrounds (Xcode 13.2.1)

I've just started a Swift course and I'm working through the basics to get an idea of syntax.

Firstly, the Swift playground is extremely slow. Even with one or two lines of code, it can take nearly 3 minutes to show any output (if it does at all) but I keep getting the following printed in the console no matter what I do.

objc[2173]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x10fa05e30) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x1141108b8). One of the two will be used. Which one is undefined.

objc[2173]: Class _PointQueue is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x10fa05e08) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/TextInputUI.framework/TextInputUI (0x1141108e0). One of the two will be used. Which one is undefined.

Anyone know what this means and how I fix it?

Answered by ThumperComet in 703222022

I had another look at this. I was creating a new playground using the iOS blank template. I tried creating a new macOS blank template and it is much better.

Firstly, the Swift playground is extremely slow. it can take nearly 3 minutes to show any output

That's not at all normal.

Except may be first time, until a lot of software has been loaded, a few lines playground responds instantly.

Could you show the code you run in playground ?

.

Class _PathPoint is implemented in both 

This type of warning is usually not a problem. Only one implementation will be used.

Have you another version of Xcode installed (with a different name of course).

If so, try playground with it.

I fear you have an installation issue with Xcode. Could you:

  • first reboot the Mac (if you didn't do it already)
  • reinstall Xcode
Accepted Answer

I had another look at this. I was creating a new playground using the iOS blank template. I tried creating a new macOS blank template and it is much better.

Messages in Swift Playgrounds (Xcode 13.2.1)
 
 
Q