cocos2d-x-samples icon indicating copy to clipboard operation
cocos2d-x-samples copied to clipboard

Swift sample does not with with xcode6 beta4

Open Birkemose opened this issue 11 years ago • 4 comments

Due to some changes in Xcode6 beta4, the Swift example does not work out of the box. A line like var a = CGFloat(aFixedValue) results in an error saying CGFloat is not convertible to UInt8. It can be fixed with an extra cast var a = CGFloat(Uint(aFixedValue)) but I doubt this is the right solution in the long run

Birkemose avatar Jul 29 '14 13:07 Birkemose

Actually the cast must be to Int, not UInt, or the Tetris game crashes

Birkemose avatar Jul 29 '14 15:07 Birkemose

Beta5 fixes some of these issues. I will do a code pass on this soonish and get it to build with Beta5.

mannewalis avatar Aug 28 '14 19:08 mannewalis

Justin, try Beta6 instead of Beta5, just in case.

ricardoquesada avatar Aug 28 '14 19:08 ricardoquesada

Sorry, I meant Beta6 :)

mannewalis avatar Aug 28 '14 19:08 mannewalis