# Chapter 4 - "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" completed photo selection

**URL:** <https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476>\
**Category:** RxSwift\
**Created:** [August 26, 2020, 10:33pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476 "2020-08-26T22:33:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreskwan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/andreskwan/32/108642_2.png) [@andreskwan](https://forums.kodeco.com/u/andreskwan)\
**Post date:** [August 26, 2020, 10:33pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/1 "2020-08-26T22:33:43Z")

</div>

Hi,

“Error returned from daemon: Error Domain=com.apple.accounts Code=7 “(null)”” completed photo selection

I’m getting this error in both the starter and final projects,  
this happens every time I’m in PhotosViewController and tap on a photo.  
nothing is displayed in the MainViewController.imagePreview.

Thanks.

---

<div class="post-metadata">

**Author:** ![adamsmorgantom](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/adamsmorgantom/32/105896_2.png) [@adamsmorgantom](https://forums.kodeco.com/u/adamsmorgantom)\
**Post date:** [September 3, 2020, 6:12pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/2 "2020-09-03T18:12:30Z")

</div>

I have been getting this message consistently in my applications that use the Photos framework (import Photos). It does not seem to impact functionality of the apps. I see it when running on the Xcode simulator and when running on actual devices and in both production Xcode and Xcode Beta 6.

Just for fun I took a look at the runtime console log for a Photos app (PhotosDisplay) I designed while running on an actual device (iPhone X iOS 13.7).

The iOS system program accountsd logs “Unentitled access by client PhotoDisplay…”  
And then PhotoDisplay logs “Error returned from daemon: Error Domain=com.apple.accounts Code=7”

While this does not answer what exactly is going on it does give some context that it is pretty deep in the framework and probably not something we can control.

Tom

![Screen Shot 2020-09-03 at 1.27.44 PM](https://files.chunter.kodeco.com/original/3X/5/d/5d17f99302dad9b5a907198f2bdb3324a2d37868.png)

![Screen Shot 2020-09-03 at 1.26.32 PM](https://files.chunter.kodeco.com/original/3X/0/d/0d4691860eed967be67690c9433dc23baadbebfc.png)

---

<div class="post-metadata">

**Author:** ![icanzilb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/icanzilb/32/109333_2.png) [@icanzilb](https://forums.kodeco.com/u/icanzilb)\
**Post date:** [September 4, 2020, 8:33am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/3 "2020-09-04T08:33:21Z")

</div>

Hmm, I got to say I’m not quite sure what the reason might be for this error message; it does look like something that’s an issue on the side of the Photos framework rather than Combine. If you figure it out please chime in this thread so we can track it - I’ll keep an eye and if other readers also report similar experience I’ll cross-post here.

---

<div class="post-metadata">

**Author:** ![black\_snow](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/black_snow/32/103450_2.png) [@black\_snow](https://forums.kodeco.com/u/black_snow)\
**Post date:** [December 4, 2020, 12:19pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/4 "2020-12-04T12:19:41Z")

</div>

Hi, @andreskwan have you been able to resolve this issue? I am facing the same issue and can’t seem to get past it. Please let me know if you have a solution.

---

<div class="post-metadata">

**Author:** ![odyflame](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/odyflame/32/81494_2.png) [@odyflame](https://forums.kodeco.com/u/odyflame)\
**Post date:** [January 6, 2021, 9:27am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/5 "2021-01-06T09:27:00Z")

</div>

same problem here. i couldn’t find answer

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 8, 2021, 4:01am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/7 "2021-04-08T04:01:44Z")

</div>



---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 8, 2021, 4:06am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/8 "2021-04-08T04:06:02Z")

</div>

@andreskwan @adamsmorgantom @black_snow @odyflame Do you still have issues with this?

---

<div class="post-metadata">

**Author:** ![adamsmorgantom](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/adamsmorgantom/32/105896_2.png) [@adamsmorgantom](https://forums.kodeco.com/u/adamsmorgantom)\
**Post date:** [April 8, 2021, 12:09pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/9 "2021-04-08T12:09:46Z")

</div>

I don’t have the RW code handy but I just tried one of my Photos apps and still get the message

" **[core] “Error returned from daemon: Error Domain=com.apple.accounts Code=7 “(null)””**" when accessing photos from either a simulator or iPhone X hardware.

---

<div class="post-metadata">

**Author:** ![andreskwan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/andreskwan/32/108642_2.png) [@andreskwan](https://forums.kodeco.com/u/andreskwan)\
**Post date:** [April 20, 2021, 4:36pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/10 "2021-04-20T16:36:29Z")

</div>

Hi! What I did was to work with images (I added them), no photos taken with my phone’s camera, I think it could be related with the format of the photo, I also turned off ‘Live’.

---

<div class="post-metadata">

**Author:** ![jacquesj](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jacquesj/32/97294_2.png) [@jacquesj](https://forums.kodeco.com/u/jacquesj)\
**Post date:** [May 13, 2021, 4:06pm UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/11 "2021-05-13T16:06:20Z")

</div>

Hey guys I am also getting this error message, any fix for this?

---

<div class="post-metadata">

**Author:** ![tada777](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/tada777/32/81494_2.png) [@tada777](https://forums.kodeco.com/u/tada777)\
**Post date:** [September 26, 2021, 4:29am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/12 "2021-09-26T04:29:24Z")

</div>

I also got this issue even with the updated Xcode ver 13.0 and iPhone 12 mini (iOS14.7.1). If anyone solved, kindly let me know your solution.

---

<div class="post-metadata">

**Author:** ![wzbozon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/wzbozon/32/104668_2.png) [@wzbozon](https://forums.kodeco.com/u/wzbozon)\
**Post date:** [August 17, 2022, 11:26am UTC](https://forums.kodeco.com/t/chapter-4-error-returned-from-daemon-error-domain-com-apple-accounts-code-7-null-completed-photo-selection/118476/13 "2022-08-17T11:26:26Z")

</div>

Do everything with `PHAsset` on the main thread. I still get that error, but at least images are fetched.

```
let options = PHFetchOptions()
options.includeHiddenAssets = false
options.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: false)] // Newest first
options.predicate = NSPredicate(format: "mediaType = \(PHAssetMediaType.image.rawValue)") // Only images

DispatchQueue.main.async {
    self.mediaAssets = PHAsset.fetchAssets(with: options)
}

```
