Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Caezar

macrumors 6502
Original poster
Hi, I get a compiling error when using SwiftPlaygrounds. I think it started after I installed IOS 11. It has been broken for a while already and no update has fixed it. Has anyone been facing the same problem?

Caezar

Error compiling source

Warning: Contents/Sources/HelperExtensions.swift:19: 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

Error: Contents/Sources/Color.swift:56: initializer 'init(colorLiteralRed:green:blue:alpha:)' has different argument names from those required by protocol '_ExpressibleByColorLiteral' ('init(_colorLiteralRed:green:blue:alpha:)')

Error: Contents/Sources/Gem.swift:122: type 'SCNAnimationProtocol' has no member 'spinAnimation'

Warning: Contents/Sources/Scene.swift:290: 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

Warning: Contents/Sources/Wall.swift:78: 'M_PI_2' is deprecated: Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.

Warning: Contents/Sources/Wall.swift:85: 'M_PI_2' is deprecated: Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.

Warning: Contents/Sources/HelperExtensions.swift:19: 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

Error: Contents/Sources/Color.swift:56: initializer 'init(colorLiteralRed:green:blue:alpha:)' has different argument names from those required by protocol '_ExpressibleByColorLiteral' ('init(_colorLiteralRed:green:blue:alpha:)')

Error: Contents/Sources/Gem.swift:122: type 'SCNAnimationProtocol' has no member 'spinAnimation'

Warning: Contents/Sources/Scene.swift:290: 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

Warning: Contents/Sources/Wall.swift:78: 'M_PI_2' is deprecated: Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.

Warning: Contents/Sources/Wall.swift:85: 'M_PI_2' is deprecated: Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.
 

Attachments

  • CE9AA3FE-32ED-4D74-965E-D8632D87F45F.png
    CE9AA3FE-32ED-4D74-965E-D8632D87F45F.png
    355.6 KB · Views: 33
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.