Xcode deosn't detect a framework
<p>I have added ALAssetsLibrary framework to my project and for some reason XCode doesnt detect it. </p>

<p>I have no code completion, and XCode gives a warning and then crashes when I use the following code</p>

<pre><code>ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupWithTypes:ALAssetsGroupAlbum
                      usingBlock:assetGroupEnumerator
                    failureBlock:^(NSError *error){
                        NSLog(@"A problem occured");

 }];
</code></pre>

<p>It doesnt detect what ALAssetsLibrary is and the warning which leads to a crash is </p>

<blockquote>
  <p>warning: 'ALAssetsLibrary' may not respond to '-enumerateGroupWithTypes:usingBlock:failureBlock:'</p>
</blockquote>

<p><img src="http://i.stack.imgur.com/6KneM.png" alt="enter image description here"></p>

<p>Why isnt XCode detecting the framework?</p>

<p>I have added it to my project as well as imported it.</p>

<p><img src="http://i.stack.imgur.com/rUl7d.png" alt="enter image description here"></p>

<p><img src="http://i.stack.imgur.com/dnyus.png" alt="enter image description here"></p>

<p>I would really appreciate the help with this, I dont understand what I did wrong. Thanks</p>
