We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I did a pod update and i started facing this error. This problem is on 3.0.0 on 2.1.0 it works fine
private class func _firstOrCreateWithAttributes<T>(attributes: [String : AnyObject], predicateType: NSCompoundPredicateType = defaultPredicateType, context: NSManagedObjectContext = AERecord.defaultContext) -> T { let predicate = createPredicateForAttributes(attributes, predicateType: predicateType) let request = createFetchRequest(predicate: predicate) request.fetchLimit = 1 let objects = AERecord.executeFetchRequest(request, context: context) return (objects.first ?? createWithAttributes(attributes, context: context)) as! T //Here i get the error }
ERROR
Could not cast value of type 'NSManagedObject_AccountDetails_' (0x7fd43ae881b0) to 'FeedbackChamp.AccountDetails' (0x1081b1220).
MY CODE
AccountDetails.firstOrCreateWithAttributes(["data" : readableJSON["result"]["hoteladded"].bool! ? 1 : 0, "detailName": "num_hotels"]) AccountDetails.firstOrCreateWithAttributes(["data" : readableJSON["result"]["num_restaurants"].int!, "detailName": "num_restaurants"]) AERecord.saveContextAndWait()
Please fix it as soon as posible
The text was updated successfully, but these errors were encountered:
This answer did the trick. http://stackoverflow.com/a/29578034/2670547
Sorry, something went wrong.
Ok, this may be closed then.
No branches or pull requests
I did a pod update and i started facing this error. This problem is on 3.0.0 on 2.1.0 it works fine
Could not cast value of type 'NSManagedObject_AccountDetails_' (0x7fd43ae881b0) to 'FeedbackChamp.AccountDetails' (0x1081b1220).
Please fix it as soon as posible
The text was updated successfully, but these errors were encountered: