cocos2d / cocos2d-x-samples

Contains different cocos2d-x samples
MIT License
576 stars 242 forks source link

Swift sample does not with with xcode6 beta4 #23

Open Birkemose opened 10 years ago

Birkemose commented 10 years ago

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 commented 10 years ago

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

mannewalis commented 10 years ago

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

ricardoquesada commented 10 years ago

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

mannewalis commented 10 years ago

Sorry, I meant Beta6 :)