title: Issues when compiling iOS 5 app with Google Analytics/GANTracker
body: <p>When trying to install Google Analytics and compile my iOS 5 project, i get the below error message:</p>
  
  <pre><code>Undefined symbols for architecture i386:  
  "_OBJC_CLASS_$_GANTracker", referenced from:  
  objc-class-ref in AppDelegate.o  
  ld: symbol(s) not found for architecture i386  
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>and the code won't compile.
  My build target is iOS 5, I'm linking the below libraries:<br>
  - libsqlite3.dylib<br>
  - libz.dylib<br>
  - libGoogleAnalytics.a<br>
  - CFNetwork<br>
  - and GANTracker.h</p>
  
  <p>and putting:</p>
  
  <pre><code>#import "GANTracker.h"
  #define kGANAccountId @"UA-XXXXXXX-X"
  static const NSInteger kGANDispatchPeriodSec = 10;
  @implementation AppDelegate
  @synthesize window = _window;
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [[GANTracker sharedTracker] startTrackerWithAccountID:kGANAccountId
                                         dispatchPeriod:kGANDispatchPeriodSec
                                               delegate:nil];
  
  NSError *error;
  if (![[GANTracker sharedTracker] setCustomVariableAtIndex:1
                                                       name:@"iPhone1"
                                                      value:@"iv1"
                                                  withError:&amp;error]) {
      // Handle error here
  }
  
  if (![[GANTracker sharedTracker] trackEvent:@"my_category"
                                       action:@"my_action"
                                        label:@"my_label"
                                        value:-1
                                    withError:&amp;error]) {
      // Handle error here
  }
  
  if (![[GANTracker sharedTracker] trackPageview:@"/app_entry_point"
                                       withError:&amp;error]) {
      // Handle error here
  }
  </code></pre>
  
  <p>Any I've followed everything in: <a href="http://code.google.com/mobile/articles/analytics_end_to_end.html" rel="nofollow">http://code.google.com/mobile/articles/analytics_end_to_end.html</a></p>
  
  <p>Am I missing a library or framework? 
  I'm using Xcode version 4.3.1  </p>