我在这一点上被困了好几天。我正在尝试使用Unity 5.3.1f1(旧的Unity版本为3.5.7f6),Xcode 6.1 + iOS SDK 8.1在iOS上构建我的旧项目。得到以下错误。我修复了所有编译错误,但无法解决这些问题。提前谢谢!
Undefined symbols for architecture armv7:
"_ga_dispatch", referenced from:
_GoogleAnalyticsBinding_ga_dispatch_m_1985977664_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_dispatch_m_1985977664_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_dispatch_m_1985977664_0)
"_ga_sendEvent", referenced from:
_GoogleAnalyticsBinding_ga_sendEvent_m_796108308_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_sendEvent_m_796108308_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_sendEvent_m_796108308_0)
"_ga_init", referenced from:
_GoogleAnalyticsBinding_ga_init_m_945665034_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_Init_m1934083825_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_init_m_945665034_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_Init_m1934083825_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_init_m_945665034_0)
"_ga_stopTracker", referenced from:
_GoogleAnalyticsBinding_ga_stopTracker_m_197343630_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_Destroy_m_692452965_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_stopTracker_m_197343630_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_Destroy_m_692452965_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_stopTracker_m_197343630_0)
"_ga_startTracker", referenced from:
_GoogleAnalyticsBinding_ga_startTracker_m_1249043631_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_startTracker_m_1249043631_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_startTracker_m_1249043631_0)
"_ga_sendView", referenced from:
_GoogleAnalyticsBinding_ga_sendView_m_221331953_0 in Bulk_Assembly-CSharp_8.o
_GoogleAnalyticsBinding_ga_sendView_m_221331953_0 in Bulk_Assembly-CSharp_8.o
(maybe you meant: _GoogleAnalyticsBinding_ga_sendView_m_221331953_0)
ld:找不到架构armv7的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
答案 0 :(得分:1)
经过多次搜索&尝试,这个适用于我的情况:
从Unity重新构建Xcode项目并切换回 Mono2x (而不是IL2CPP)。
添加 StoreKit.framework , CoreData.framework , SystemConfiguration .framework 强>
在其他链接标记中添加 -ObjC
(GoogleAnalyticsServicesiOS_3.13工作得很好。我并没有真正理解,但我不得不禁用Bitcode。)
谢谢!希望这有助于其他人!