1

我正在尝试将 Google Analytics 合并到我的应用程序中。按照教程,我遇到了这些错误:

//First Three errors
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_GAI", referenced from:
  objc-class-ref in AppDelegate.o
"_OBJC_METACLASS_$_GAITrackedViewController", referenced from:
  _OBJC_METACLASS_$_ViewController in ViewController.o
"_OBJC_CLASS_$_GAITrackedViewController", referenced from:
  _OBJC_CLASS_$_ViewController in ViewController.o

//last error
ld: file not found: /path/to/libAdIdAccess.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
//

我已经添加了

-force_load /path/to/libAdIdAccess.a

到我的构建设置中的“其他链接器标志”部分来解决上面列出的前三个错误。但是,我仍然在底部留下最后一个错误。我怎样才能解决这个问题?

我的应用在 iOS 8 和 Xcode 6 中运行。

4

0 回答 0