Xcode 5将Google Analytics更新到3.0.1后,架构i386的未定义符号

时间:2013-10-03 09:24:37

标签: ios xcode google-analytics

在Xcode 5中将Google Analytics更新为3.0.1后,我现在在为模拟器构建时遇到此错误。但是设备构建没有这个问题。

Undefined symbols for architecture i386:
"_llvm_gcda_emit_arcs", referenced from:
    ___llvm_gcov_writeout in libAPDK.a(GAITrackerImpl.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIBatchingDispatcher.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIRequestBuilder.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIUtil.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDefaultLogger.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDataStore.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIHitUtil.o)
    ...
"_llvm_gcda_emit_function", referenced from:
    ___llvm_gcov_writeout in libAPDK.a(GAITrackerImpl.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIBatchingDispatcher.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIRequestBuilder.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIUtil.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDefaultLogger.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDataStore.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIHitUtil.o)
    ...
"_llvm_gcda_end_file", referenced from:
    ___llvm_gcov_writeout in libAPDK.a(GAITrackerImpl.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIBatchingDispatcher.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIRequestBuilder.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIUtil.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDefaultLogger.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDataStore.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIHit.o)
    ...
"_llvm_gcda_increment_indirect_counter", referenced from:
    -[GAITrackerImpl gai_set:value:] in libAPDK.a(GAITrackerImpl.o)
    -[GAITrackerImpl gai_get:] in libAPDK.a(GAITrackerImpl.o)
    -[GAITrackerImpl gai_send:] in libAPDK.a(GAITrackerImpl.o)
    -[GAIBatchingDispatcher batchBySessionSplit:maxHits:] in libAPDK.a(GAIBatchingDispatcher.o)
    -[GAIBatchingDispatcher hitsForDispatch] in libAPDK.a(GAIBatchingDispatcher.o)
    -[GAIBatchingDispatcher nextPendingHits] in libAPDK.a(GAIBatchingDispatcher.o)
    -[GAIBatchingDispatcher queueDispatch:] in libAPDK.a(GAIBatchingDispatcher.o)
    ...
"_llvm_gcda_start_file", referenced from:
    ___llvm_gcov_writeout in libAPDK.a(GAITrackerImpl.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIBatchingDispatcher.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIRequestBuilder.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIUtil.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDefaultLogger.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIDataStore.o)
    ___llvm_gcov_writeout in libAPDK.a(GAIHit.o)
    ...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

更新

我开始认为Google提供的.a文件可能没有i386弧。从v3.0更新到3.0.1后问题就开始了。

1 个答案:

答案 0 :(得分:0)

我不记得修复此问题的版本,但它在当前3.06版本中有效。如果您遇到此问题,请尝试更新SDK。