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

i get a liker error #262

Closed
lyair1 opened this issue Dec 31, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@lyair1
Copy link

commented Dec 31, 2012

hi, i implemented your sdk and i have a problem.

i do everything like said in the installation intructions.
when i add the "Other Linker" -ObjC i get an error.:

"more duplicate symbols"
.
.
.
.
.
.
.
.
.
.
duplicate symbol OBJC_IVAR$GAIDispatcher.cacheBuster in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
duplicate symbol OBJC_IVAR$GAIDispatcher.urlConnectionClass in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
duplicate symbol OBJC_IVAR$GAIDispatcher.clientId in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
duplicate symbol OBJC_IVAR$GAIDispatcher.reachability in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
duplicate symbol OBJC_CLASS$_GAIDispatcher in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
duplicate symbol OBJC_METACLASS$_GAIDispatcher in:
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
ld: 211 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


as you can see it is probebly related to the fact i use google analytics in my app.

what can i do to fix this error.
i tried to run without the linker and my app crushes when i ask to get an image from url..

thank you.

@viking2009

This comment has been minimized.

Copy link

commented Dec 31, 2012

/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics.a(GAIDispatcher.o)
/Users/Yair/Downloads/GoogleAnalyticsiOS_2.0beta3/GoogleAnalytics/libGoogleAnalytics_debug.a(GAIDispatcher.o)
you can use only one library for target, not both at once

@lyair1

This comment has been minimized.

Copy link
Author

commented Jan 1, 2013

so what can i do if i want to use the google analytics library but also this one?

is that not possible?!

@viking2009

This comment has been minimized.

Copy link

commented Jan 1, 2013

You should add libGoogleAnalytics.a for release(distribution) version of your app or libGoogleAnalytics_debug.a for debug version.

Read Readme.txt for Google Analytics iOS SDK version 2.0 Beta 3:
"To use a version of the library with debug symbols intact, link against libGoogleAnalytics_debug.a instead of libGoogleAnalytics.a. This may be useful
if you experience exceptions or crashes originating in the SDK."

@lyair1

This comment has been minimized.

Copy link
Author

commented Jan 5, 2013

ok. thank you very much! i deleted the release version and its now working.
its amazing! thanks!

@lyair1 lyair1 closed this Jan 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.