fetchedResultsController.fetchedObjects crashes on iOS 10 beta 1 and Swift 2.3 -


summary:

when try access fetchedresultscontroller.fetchedobjects app crashes , printed error as:

fatal error: nsarray element failed match swift array element type

steps reproduce:

  1. call fetchedresultscontroller.fetchedobjects after fetchedresultscontroller.performfetch.
  2. try convert fetchedresultscontroller.fetchedobjects nsmanagedobjects.
  3. app crashes.

expected results:

fetchedresultscontroller.fetchedobjects should accessible in swift.

ios version: ios 10 beta 1

xcode version : 8.0 beta

swift : 2.3

thanks!

this issue has been resolved once upgraded swift code swift 3.0.

thanks!


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -