I created my application (designed for iOS7) and now I want to use Google Analytics as the last step before submitting. What I've done:
- Download GA for iOS 3.01
- Imported content
/GoogleAnalytics/Library/ into the GoogleAnalytics group - Imported
libGoogleAnalyticsServices.a into the libGoogleAnalyticsServices.a group - Added Build Phases and changed the build phase of
libGoogleAnalytics_debug.a using libGoogleAnalyticsServices.a - Added
#include "GAI.h" code to my -Prefix.pch file. - Initialize
[GAI sharedInstance] in my AppDelegate .
I have installation screenshots at the bottom of this post. When I try to build (either a device or a simulator, like 32-bit), I get the following linker errors:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GAI", referenced from: objc-class-ref in FTVAppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to solve this?
UPDATE 1
I also get a warning
ld: warning: ignoring file .../libGoogleAnalyticsServices.a, missing required architecture x86_64 in file .../libGoogleAnalyticsServices.a (3 slices) ld: warning: ignoring file .../SDWebImage.framework/SDWebImage, missing required architecture x86_64 in file .../SDWebImage.framework/SDWebImage (3 slices)
UPDATE 2
This error only occurs when building for 64 bits. I accidentally set Build Only for active architecture to NO, when it changed to YES, I was able to create again. This means that the application is now NOT working on the iPhone 5S - this is still a problem.
ios cocoa-touch xcode google-analytics linker-errors
c.jespersen Sep 21 '13 at 14:56 2013-09-21 14:56
source share