English 中文(简体)
从一个核心数据模型向另一个模型迁移的问题
原标题:Problems with migration from one CoreData model to another

我创建了核心数据模型的新版本(给实体增加一个新特性)和从另一个角度绘制地图。 然后,我以老模式编写的公开文件。 它通常开放,但在我试图挽救它时,我用“

AppKit called rmdir("/private/var/folders/v9/y2tl4yh55zj1pcg0typksyrm0000gp/T/TemporaryItems/(A Document Being Saved By Document 3)"), it didn t return 0, and errno was set to 66.

你们是否想到什么?

PS。 这不是我第一次在核心移民方面的经验,而是我第一次如此艰难地 st。

最佳回答

你的微笑可能有所不同,但当我有这个问题时,这确实是一个错误。

我的利用案例是一辆汽车(即我曾明确叫救)。 我证实了这一点,明确呼吁并倾倒由此产生的错误:

NSError* error = nil;
if (![context save:&error]) {
  NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
  abort();
}

简而言之(就我的情况而言),我有一个必要的实体。

Good luck.

问题回答

暂无回答




相关问题
Asynchronous request to the server from background thread

I ve got the problem when I tried to do asynchronous requests to server from background thread. I ve never got results of those requests. Simple example which shows the problem: @protocol ...

objective-c: Calling a void function from another controller

i have a void, like -(void) doSomething in a specific controller. i can call it in this controller via [self doSomething], but i don t know how to call this void from another .m file. I want to call ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

NSUndoManager and runModalForWindow:

I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be ...

NSMutableArray values becoming "invalid"

I m trying to show a database information in a tableview and then the detailed information in a view my problem is as follow: I created a NSMutableArray: NSMutableArray *myArray = [[NSMutableArray ...

iPhone numberpad with decimal point

I am writing an iPhone application which requires the user to enter several values that may contain a decimal point (currency values, percentages etc.). The number of decimal places in the values ...

热门标签