I am using a custom source expression
NSExpression(format: \"FETCH(FUNCTION($manager, \\\"customFetchRequestForSourceEntityNamed:predicateString:\\\" , \\\"\\(m
The expected result type of this method is NSFetchRequest, not what the fetch returns.
NSFetchRequest
The signature would be -
extension NSMigrationManager { @objc func customFetchRequest(forSourceEntityNamed entityName: String, predicateString: String) -> NSFetchRequest<NSFetchRequestResult> {