Chapter 7 - Final Cloud Notes - Error

Chapter 7-Final Cloud Notes - Error

When I run the Final version of Cloud Notes, the following error occurred. And the book edition is 2,if this

problem has been solved in the 2.1 version of the book, where can I get the new demo?

Please Help. So many Thanks.

The error is bellow:

Error creating storePath Optional("/Users/Aaron/Library/Developer/CoreSimulator/Devices/01825804-6590-476D-

A242-B241E48D17A7/data/Containers/Data/Application/8A20C769-BE07-4890-ACF5-C2D414E62E18/Library/Application

Support"): Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Application

Support")” in the folder “Library”." UserInfo={NSFilePath=Optional

("/Users/Aaron/Library/Developer/CoreSimulator/Devices/01825804-6590-476D-A242-

B241E48D17A7/data/Containers/Data/Application/8A20C769-BE07-4890-ACF5-C2D414E62E18/Library/Application

Support"), NSUnderlyingError=0x7fb6ec2607e0 {Error Domain=NSPOSIXErrorDomain Code=13 “Permission denied”}}
2016-04-10 22:36:00.826 CloudNotes[1178:26474] CoreData: error: -addPersistentStoreWithType:SQLite

configuration:(null) URL:Optional(%22/Users/Aaron/Library/Developer/CoreSimulator/Devices/01825804-6590-476D-

A242-B241E48D17A7/data/Containers/Data/Application/8A20C769-BE07-4890-ACF5-C2D414E62E18/Library/Application

%20Support%22)/CloudNotes.sqlite – file:/// options:(null) … returned error Error Domain=NSCocoaErrorDomain

Code=512 “The file couldn’t be saved.” UserInfo={reason=Failed to create file; code = 2} with userInfo

dictionary {
reason = “Failed to create file; code = 2”;
}
store error Error Domain=NSCocoaErrorDomain Code=512 “The file couldn’t be saved.” UserInfo={reason=Failed to

create file; code = 2}

The above problem is due to a spelling mistake. I am so sorry, it’s my fault.

Next, I changed the “options: nil” to “options: self.options” in the initialization of the persistent store. And it still can’t work and told: “Core Data: iCloud: Error: failed to receive intial sync notification call back in 90 seconds”

Please Help. So many Thanks.

It’s…Simulator. 2 apple devices with the same iCloud account works fine. Thanks!