Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTLQueryAnalytics Linking Error in Xcode 4 #18

Open
GoogleCodeExporter opened this issue Apr 24, 2015 · 3 comments
Open

GTLQueryAnalytics Linking Error in Xcode 4 #18

GoogleCodeExporter opened this issue Apr 24, 2015 · 3 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 [email protected] on 1 Sep 2012 at 7:27

@GoogleCodeExporter
Copy link
Author

It is Xcode 4.3.2

Original comment by [email protected] on 1 Sep 2012 at 7:30

@GoogleCodeExporter
Copy link
Author

Will anybody reply?

Original comment by [email protected] 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 [email protected] on 6 Sep 2012 at 11:31

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

No branches or pull requests

1 participant