Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

GTLQueryAnalytics Linking Error in Xcode 4 #18

Closed
GoogleCodeExporter opened this issue Aug 11, 2015 · 4 comments
Closed

GTLQueryAnalytics Linking Error in Xcode 4 #18

GoogleCodeExporter opened this issue Aug 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

It is Xcode 4.3.2

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

@GoogleCodeExporter
Copy link
Author

Will anybody reply?

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Original comment by grobb...@google.com on 1 May 2015 at 12:47

  • Changed state: Invalid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant