Getting Swift Compiler Errors

I created the app in Xcode 6.2

and it worked fine, but when I move it Xcode 6.3

to another system I get a lot of compiler errors Swift

.

Most of them are like "AnyObject is not convertible to NSArray"

,"AnyObject is not convertible to NSNumber"

Sorry, I was unable to upload images.

+3


source to share


2 answers


I highly recommend reading the release notes to get a rough idea of ​​what has / has not changed.



There are some major syntactic modifications and a few shortcomings that you will have to manually fix in your code.

+2


source


For anyObjects problem, I can help you. You can replace anyObjects with "first" so there is no difference. Also there are many changes, like when you have to put, you also need to put! (like!) like "name like! SKNode ()". You can view the release nodes for more information.



0


source







All Articles