newlinedotco / FlappySwift

swift implementation of flappy bird. More at fullstackedu.com

Home Page:https://www.fullstackedu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Compile Error

Rahulgupta-cdnsol opened this issue · comments

Hi,

I have downloaded the code and try to compile on XCode 6.4 and gets compilation error.

I have also tried to compile with xcode 7.1 and get the following compile errors.
Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameScene.swift:208:19:
Method does not override any method from its superclass

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameScene.swift:127:13:
Variable 'ground' was never mutated; consider changing to 'let' constant

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameScene.swift:173:13:
Variable 'contactNode' was never mutated; consider changing to 'let' constant

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameScene.swift:212:21:
Initialization of immutable value 'location' was never used; consider replacing
with assignment to '_' or removing it

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameScene.swift:259:85:
'AnyObject!' is not convertible to 'TJPlacement'; did you mean to use 'as!' to
force downcast?

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameViewController.swift

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameViewController.swift:69:19:
Method does not override any method from its superclass

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameViewController.swift:15:58:
'NSString' is not implicitly convertible to 'String'; did you mean to use 'as'
to explicitly convert?

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/GameViewController.swift:51:36:
'UIView!' is not convertible to 'SKView'; did you mean to use 'as!' to force
downcast?

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/AppDelegate.swift

/Users/fred.user/Downloads/samples/ios/ios-sdk-demo-flappy-master/FlappyBird/AppDelegate.swift:24:10:
Objective-C method 'application:didFinishLaunchingWithOptions:' provided by
method 'application(:didFinishLaunchingWithOptions:)' conflicts with optional
requirement method 'application(
:didFinishLaunchingWithOptions:)' in protocol
'UIApplicationDelegate'

Already resolved on master, closing.