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

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -