Comments (7)
Yeah, got the same here, can't realy find the problem
from flappyswift.
If you double click on the error, Xcode automatically offers to fix it for you.
from flappyswift.
Pull the latest commits. Does this fix your problem @H273 @xvilo ?
from flappyswift.
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'
from flappyswift.
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.
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.
fixed in master
from flappyswift.
Related Issues (20)
- Th
- [Critical] 22 build issues in Xcode 6.0.1 HOT 6
- Bird can fly off the screen HOT 2
- dataWithContentsOfFile error HOT 5
- In the new version toRaw() is replaced by rawValue HOT 4
- License? HOT 1
- error in GameScene.swift HOT 7
- GameViewController.swift and 3 errors HOT 3
- Use of unresolved identifier 'clamp' HOT 1
- Auto Layout on different devices HOT 2
- Black Bars on 4.7" and 5.5" screens HOT 1
- Code Compile Error HOT 2
- Error in Swift 3.0 HOT 1
- Swift 3 @objc inference in Swift 4 mode is deprecated.
- Copyright Dates
- Is this OK if I make some changes in the game & publish it to the AppStore? HOT 2
- No page to direct into the game HOT 1
- Animation stops after reset HOT 1
- How to implement game over screen/score board?
- You can over jump the pipes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flappyswift.