My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 18: GTLQueryAnalytics Linking Error in Xcode 4
  Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Sep 1, 2012
What steps will reproduce the problem?
1. I followed the steps to embed static library in xcode and included analytics generated files.
2. I added security and system configuration framework in my project.
3. Write code using queryanalytics here is the code.

self.analyticsService.authorizer = auth;
        GTLQueryAnalytics *query = [GTLQueryAnalytics queryForDataGaGetWithIds:@"ga:48150884" startDate:@"ga:totalEvents" endDate:@"ga:totalEvents" metrics:@"ga:totalEvents"];
        GTLServiceAnalytics *service = self.analyticsService;
        self.analyticsTicket = [service executeQuery:query delegate:self didFinishSelector:@selector(serviceTicket:finishedWithObject:error:)];

What is the expected output? What do you see instead?
It did not build at all and terminated giving linking error.

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_GTLQueryAnalytics", referenced from:
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What version of the product are you using? On what operating system?
I am using google api objective c client library with Mac 10.7.3 and xcode 4

Please provide any additional information below.

Sep 1, 2012
It is Xcode 4.3.2
Sep 3, 2012
Will anybody reply?

Sep 6, 2012
Project Member #3
From the link error, it appears that GTLQueryAnalytics.m is not compiled into your application target.
Sign in to add a comment

Powered by Google Project Hosting