0

I have checked WWDC 2014 video about Changes in Core Data and I think it is great. However when I tried to use the sample code in Apple website: Earthquakes: Using Second Core Data Stack to Fetch Data in Background

I faced a lot of error shown. Even I tried to fix these errors but some of them I could not understand. I just wonder it is the errors made by Apple developers or the errors for my Xcode 6 beta 4.

enter image description here

I would appreciate much if you could check for me to make sure what happened because I really need these changes in Core Data.

Thank you so much!

Kenster
  • 23,465
  • 21
  • 80
  • 106
Nam Nguyen
  • 29
  • 3
  • no, not a bug. the language's syntax has been changed only – you can read more about the latest compiler here: https://developer.apple.com/library/prerelease/ios/releasenotes/DeveloperTools/RN-Xcode/xc6_release_notes/xc6_release_notes.html – holex Aug 04 '14 at 11:42

1 Answers1

3

As you know Swift is still in beta. The sample project that you have mentioned above is not build using the latest swift version beta 4. They have made lot of changes from beta to beta. The compiler error shown will help you to fix those error's. You can even check the changes in beta 4 here

Anil Varghese
  • 42,757
  • 9
  • 93
  • 110
  • Thank you but I don't think it is because of beta version. For example, as in the picture I saw 'NSArray cannot be implicitly downcast to NSDictionary' or 'has no initializers'. I think these errors are not related to version of Swift. – Nam Nguyen Aug 04 '14 at 12:07
  • Array declaration is changed in beta 4. May be due to that its coming – Anil Varghese Aug 04 '14 at 12:08