# Chapter 7 - Final Cloud Notes - Error

**URL:** <https://forums.kodeco.com/t/chapter-7-final-cloud-notes-error/13083>\
**Category:** Core Data by Tutorials\
**Created:** [April 10, 2016, 9:56pm UTC](https://forums.kodeco.com/t/chapter-7-final-cloud-notes-error/13083 "2016-04-10T21:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronlee77](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aaronlee77/32/26859_2.png) [@aaronlee77](https://forums.kodeco.com/u/aaronlee77)\
**Post date:** [April 10, 2016, 9:56pm UTC](https://forums.kodeco.com/t/chapter-7-final-cloud-notes-error/13083/1 "2016-04-10T21:56:38Z")

</div>

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}

---

<div class="post-metadata">

**Author:** ![aaronlee77](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aaronlee77/32/26859_2.png) [@aaronlee77](https://forums.kodeco.com/u/aaronlee77)\
**Post date:** [April 18, 2016, 3:27pm UTC](https://forums.kodeco.com/t/chapter-7-final-cloud-notes-error/13083/2 "2016-04-18T15:27:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aaronlee77](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aaronlee77/32/26859_2.png) [@aaronlee77](https://forums.kodeco.com/u/aaronlee77)\
**Post date:** [April 20, 2016, 8:08am UTC](https://forums.kodeco.com/t/chapter-7-final-cloud-notes-error/13083/3 "2016-04-20T08:08:35Z")

</div>

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