If you are still wondering what caused your problem, most likely your libGoogleAnalytics library will only be compiled for one architecture (ARM), not i386 (for the simulator).
So, how can you determine which architectures are part of binary code? To do this, you can use otool , for example. the following command (on the terminal):
otool libGoogleAnalytics.a -f
It gives me the following result (note: I myself created a live Google Analytics binary library):
Fat headers fat_magic 0xcafebabe nfat_arch 3 architecture 0 cputype 7 cpusubtype 3 capabilities 0x0 offset 68 size 243208 align 2^2 (4) architecture 1 cputype 12 cpusubtype 6 capabilities 0x0 offset 243276 size 231504 align 2^2 (4) architecture 2 cputype 12 cpusubtype 9 capabilities 0x0 offset 474780 size 229552 align 2^2 (4) Archive : libGoogleAnalytics.a (architecture i386) Archive : libGoogleAnalytics.a (architecture armv6) Archive : libGoogleAnalytics.a (architecture armv7)
The last 3 lines show the supported architectures. You can create your own bold binaries using the lipo command line tool.
source share