NSManagedObjectModel initWithContentsOfURL returns nil eventhough the modelURL is valid

后端 未结 6 451
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 13:42

my NSManagedObjectModel is returning nil eventhough the path is correct.

        NSString *modelKey = [NSString stringWithFormat:@\"/%@/Model\", name];
    N         


        
6条回答
  •  时光说笑
    2021-01-01 14:19

    I had the same problem after I renamed .xcdatamodeld file. The problem was solved by closing and reopening the Xcode client.

提交回复
热议问题