newlinedotco / FlappySwift

swift implementation of flappy bird. More at fullstackedu.com
https://www.fullstackedu.com
MIT License
9.68k stars 2.68k forks source link

There's an error, when I tried to build #18

Closed minuJeong closed 10 years ago

minuJeong commented 10 years ago

FlappySwift/FlappyBird/GameScene.swift:147:46: 'CGFloat' is not convertible to 'UInt8'

minuJeong commented 10 years ago

after changing these,

147: UInt32(self.frame.size.height / 4 ) -> UInt32(UInt(self.frame.size.height / 4 )) 152: CGFloat(y) -> CGFloat(Float(y)) 163: CGFloat(y) -> CGFloat(Float(y))

it builds like a charm

OKNoah commented 10 years ago

Applied the fix above and I get this after iOS Simulator launches

An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
mertnesvat commented 10 years ago

yes i've got 23 error to build...

kkdai commented 10 years ago

@OKNoah Check this to reset your simulator. http://qiita.com/tajihiro/items/f6f50b56162c93d25c90

jashmenn commented 10 years ago

This should be fixed now.