Xcode 7.3: Linker command failed with exit code 1 (use -v to see invocation)
<p>I install AFNetworking via CocoaPod, but when I run it says error:</p>

<blockquote>
  <p>linker command failed with exit code 1 (use -v to see invocation)</p>
</blockquote>

<p>I have cleaned my project and build again but not works.</p>

<p>If I remove <code>#import "MediaClient.h"</code> in <code>AppDelegate.h</code>, it works:</p>

<p><a href="https://i.stack.imgur.com/6kqmX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6kqmX.png" alt="enter image description here"></a></p>

<p>My <code>MediaClient.h</code> is</p>

<pre><code>#import &lt;Foundation/Foundation.h&gt;
#import "Media.h"
#import "AFNetworking.h"

NSString *movieURLString = @"abc";
NSString *dvdURLString = @"def";

typedef void (^Completion) (NSArray&lt;Media*&gt; *medias);

@interface MediaClient : NSObject

- (void)load:(MediaType *)mediaType completion:(Completion)completion;
- (void)loadMovies:(Completion)completion;
- (void)loadDVDs:(Completion)completion;
- (void)callAPI:(NSString *)urlString completion:(Completion)completion;

@end
</code></pre>