# Error When Opening File With File Chooser

**URL:** <https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900>\
**Category:** General JUCE discussion\
**Created:** [October 31, 2017, 10:14am UTC](https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900 "2017-10-31T10:14:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffersonBledsoe](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@JeffersonBledsoe](https://forum.juce.com/u/JeffersonBledsoe)\
**Post date:** [October 31, 2017, 10:14am UTC](https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900/1 "2017-10-31T10:14:18Z")

</div>

When trying to open a file with the File Chooser using the following code, I get this error message when working with xCode 9 on High Sierra. Any ideas as to what the problem is? I’ve inserted a breakpoint right after creating the fileChooser and it never hits the breakpoint.

```
FileChooser fileChooser ("Open Mapper",
                         File::nonexistent,
                         "*.mapper");

objc[14715]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffb1caea70) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x10f076cd8). One of the two will be used. Which one is undefined.
2017-10-31 09:51:02.826345+0000 My Programme[14715:997582] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2017-10-31 09:51:02.826380+0000 My Programme[14715:997582] MessageTracer: Falling back to default whitelist
2017-10-31 09:51:02.886452+0000 My Programme[14715:997595] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
```

---

<div class="post-metadata">

**Author:** ![JeffersonBledsoe](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@JeffersonBledsoe](https://forum.juce.com/u/JeffersonBledsoe)\
**Post date:** [October 31, 2017, 12:45pm UTC](https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900/2 "2017-10-31T12:45:12Z")

</div>

Update, I get a few different messages appear in the console whilst using the FileChooser to save files, however saving appears to work fine.

```
JUCE v5.2.0
-NSDocumentRevisionsDebugMode YES
2017-10-31 12:42:30.901795+0000 My Programme[21418:1239979] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
2017-10-31 12:42:30.902409+0000 My Programme[21418:1240051] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2017-10-31 12:42:30.902442+0000 My Programme[21418:1240051] MessageTracer: Falling back to default whitelist
```

---

<div class="post-metadata">

**Author:** ![xenakios](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/xenakios/32/4047_2.png) [@xenakios](https://forum.juce.com/u/xenakios)\
**Post date:** [October 31, 2017, 1:41pm UTC](https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900/3 "2017-10-31T13:41:20Z")

</div>

Well, if getting the file from the chooser and using the file works, it’s just some logging noise from OS-X?

---

<div class="post-metadata">

**Author:** ![JeffersonBledsoe](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@JeffersonBledsoe](https://forum.juce.com/u/JeffersonBledsoe)\
**Post date:** [October 31, 2017, 1:55pm UTC](https://forum.juce.com/t/error-when-opening-file-with-file-chooser/24900/4 "2017-10-31T13:55:15Z")

</div>

Opening the file did not seem to work previously. Seemed to break after updating to JUCE 5.2. Did a project clean in xCode and all seems to be back to normal now.
