miaomi / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

GTLQueryAnalytics Linking Error in Xcode 4 #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by jawaa...@gmail.com on 1 Sep 2012 at 7:27

GoogleCodeExporter commented 9 years ago
It is Xcode 4.3.2

Original comment by jawaa...@gmail.com on 1 Sep 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Will anybody reply?

Original comment by jawaa...@gmail.com on 3 Sep 2012 at 9:02

GoogleCodeExporter commented 9 years ago
From the link error, it appears that GTLQueryAnalytics.m is not compiled into 
your application target.

Original comment by grobb...@google.com on 6 Sep 2012 at 11:31