'<…> is not a valid NSFetchRequest.'

前端 未结 1 1664
一生所求
一生所求 2021-01-27 14:04

I am using a custom source expression

NSExpression(format: \"FETCH(FUNCTION($manager, \\\"customFetchRequestForSourceEntityNamed:predicateString:\\\" , \\\"\\(m         


        
相关标签:
1条回答
  • 2021-01-27 14:39

    The expected result type of this method is NSFetchRequest, not what the fetch returns.

    The signature would be -

    extension NSMigrationManager {
    
        @objc func customFetchRequest(forSourceEntityNamed entityName: String, predicateString: String) -> NSFetchRequest<NSFetchRequestResult> {
    
    0 讨论(0)
提交回复
热议问题