Giter Site home page Giter Site logo

FlappySwift/FlappyBird/GameViewController.swift:17:55: Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'? about flappyswift HOT 7 CLOSED

fullstackio avatar fullstackio commented on June 28, 2024
FlappySwift/FlappyBird/GameViewController.swift:17:55: Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?'?

from flappyswift.

Comments (7)

xvilo avatar xvilo commented on June 28, 2024

Yeah, got the same here, can't realy find the problem

from flappyswift.

vedantchandra avatar vedantchandra commented on June 28, 2024

If you double click on the error, Xcode automatically offers to fix it for you.

from flappyswift.

jashmenn avatar jashmenn commented on June 28, 2024

Pull the latest commits. Does this fix your problem @H273 @xvilo ?

from flappyswift.

kevin-olbrich avatar kevin-olbrich commented on June 28, 2024

Fresh Checkout on Yosemite final and Xcode 6.1:

/Users/secretuser/FlappySwift/FlappyBird/GameViewController.swift:17:32: 'dataWithContentsOfFile(_:options:error:)' is unavailable: use object construction 'NSData(contentsOfFile:options:error:)'
/Users/secretuser/FlappySwift/FlappyBird/GameViewController.swift:54:68: Method 'fromRaw' has been replaced with a property 'rawValue'
/Users/secretuser/FlappySwift/FlappyBird/GameViewController.swift:56:55: Method 'fromRaw' has been replaced with a property 'rawValue'

#26

from flappyswift.

nbernaz avatar nbernaz commented on June 28, 2024

for the first error, just replace with
var sceneData = NSData(contentsOfFile:path,options:.DataReadingMappedIfSafe,error:nil)
and the other 2 let Xcode do the changes for you. Clean + Build and you are good to go

from flappyswift.

kevin-olbrich avatar kevin-olbrich commented on June 28, 2024

I know, I made a pull request to fix this (for other ppl).

Mit freundlichen Grüßen / best regards
Kevin Olbrich.
(mobil vom iPhone)

Mein IT-Blog: http://kevin-olbrich.de/

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind und/oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

Am 21.10.2014 um 16:59 schrieb nbernaz [email protected]:

for the first error, just replace with
var sceneData = NSData(contentsOfFile:path,options:.DataReadingMappedIfSafe,error:nil)
and the other 2 let Xcode do the changes for you. Clean + Build and you are good to go


Reply to this email directly or view it on GitHub.

from flappyswift.

jashmenn avatar jashmenn commented on June 28, 2024

fixed in master

from flappyswift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.