'<…> is not a valid NSFetchRequest.'

前端 未结 1 1669
一生所求
一生所求 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 {
    

    0 讨论(0)
提交回复
热议问题