title: PHPhotoLibrary: error creating collection list
body: <p>I am trying to create a collection list in Photos which will have multiple albums.</p>
  
  <p>The code to create the collection list is as follows:</p>
  
  <pre><code>__block NSString * localId;
  
  NSError *createFolderError;
  
  [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
  
      // Create the folder
      PHCollectionListChangeRequest *changeRequest = [PHCollectionListChangeRequest creationRequestForCollectionListWithTitle: @"My Photos"];
      localId = [[changeRequest placeholderForCreatedCollectionList] localIdentifier];
  
  } completionHandler:^(BOOL success, NSError * _Nullable error) {
  
      if (!success) {
          DebugLog(@"Creating My Photos Folder Failed... error : %@", error.description);
          return;
      }
  
      if(localId) {
          //Do something
      }
  
  }];
  </code></pre>
  
  <p>But, getting error as follows:</p>
  
  <blockquote>
    <p>Error Domain=NSCocoaErrorDomain Code=-1 "(null)"</p>
  </blockquote>
  
  <p>Earlier, it was creating folder even after getting the error, but now, I see folder not getting created under Photos application.</p>
  
  <p>Let me know if I am doing anything wrong.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The folder is getting created in the Photos app each time, but was not reflecting. When Photos App was killed and relaunched, I can see the folder. But still, why the error is shown, remains a question.</p>