Chapter 6 Build Fail

I am getting the following error
Breaker/GameUtils/GameUtils.swift:26:31: ‘M_PI’ is deprecated: Please use ‘Double.pi’ or ‘.pi’ to get the value of correct type and avoid casting.
I recently upgraded to xCode 8.3.3
Is there a recent upgrade to the book or project code?

Hi @huddo and thanks for the question! The current version of the book is updated for Swift 3 and Xcode 8.1 so for now I recommend following it using this version of Xcode (you can download older versions of xcode from https://developer.apple.com/download/more).

I’m not sure if there any plans to update the book for point releases (Swift 3.1 or 3.2) but there might be plans in the future, I’ve invited the author (Chris Langauge) to the discussion as he might have some more info that could help.

Please let me know if you have any other questions :slightly_smiling_face: