6

I successfully converted an iOS project to Xcode 7 beta + Swift 2 (it runs and the tests work).

However, when I turn on the new Address Sanitizer (option+run -> run -> Diagnostics -> Enable Address Sanitizer, I get the following message from the linker:

Undefined symbols for architecture x86_64:
  "___asan_init_v5", referenced from:
  _asan.module_ctor in libPods.a(Pods-dummy.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Seems to reference to CocoaPods which I use for the adMob pod. I updated CocoaPods itself to the latest version and I updated the adMob Pod to the latest version.

Any hints how to get Address Sanitizer to work together with CocoaPods or the AdMob CocoaPod whichever causes this?

pkamb
  • 33,281
  • 23
  • 160
  • 191
Gerd Castan
  • 6,275
  • 3
  • 44
  • 89
  • I also sent a mail to AdMob support. – Gerd Castan Jun 15 '15 at 13:16
  • Successfully installed cocoapods-0.37.2 – Gerd Castan Jun 29 '15 at 14:03
  • Versions: Successfully installed cocoapods-0.37.2; Using Google-Mobile-Ads-SDK (7.3.1) – Gerd Castan Jun 29 '15 at 14:18
  • Reproduced with XCode 7 beta 3 as expected – Gerd Castan Jul 17 '15 at 21:03
  • I've seen this with other frameworks (ex: ArcGIS). Haven't found a solution either. – Jeremy Conkin Sep 25 '15 at 17:49
  • I have the same problem myself, in this case with the [Box iOS SDK](https://cocoapods.org/pods/box-ios-sdk) and [SWTableViewCell](https://cocoapods.org/pods/SWTableViewCell). The linker is missing symbols with names like `__asan_init`, obviously for address sanitizer at too many call sites to list. I’d guess the pods are rebuilding for AS, but aren’t bringing it in for linkage. Advice, before I dig into the pods’ build configurations? – Fritz Anderson Nov 06 '15 at 23:48

0 Answers0