Undefined symbols _OBJC_CLASS_$_SFSafariViewController

2,993 views
Skip to first unread message

jerry...@adfunture.com.cn

unread,
May 6, 2016, 5:22:54 AM5/6/16
to Google Mobile Ads SDK Developers
When I integrated GoogleMobileAds into my game app, I got below error message:

 Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_SFSafariViewController", referenced from:
      objc-class-ref in GoogleMobileAds(flat-x86_64)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My iOS SDK version is 8.4, build target is 7.0.
And I have already added the SafariServices.framework.
Please help, I'm waiting for any response online...Thanks very much. 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 6, 2016, 10:23:11 AM5/6/16
to Google Mobile Ads SDK Developers
Hi Jerry,

Have you tried to replicate the issue with our sample app? I have tested both the Objective-C and Swift but never got any errors on v 7.8. I have even tried to manually integrate the SDK without any issues. Do send us your sample app and we would have look further. Also let us know if this is device specific.

Thanks,
Veer Busani
Mobile Ads SDK Team

Jerry

unread,
May 6, 2016, 10:49:35 AM5/6/16
to google-admob-ads-sdk
Thanks for your response.
Yes, I had tried with the your sample code, I got the same compile error. Based on some comments on the internet, the class 'SFSafariViewController' should be a class of iOS 9.0 or above version, but my iOS SDK version is 8.4, and XCode version is 6.4. I think that's why I encountered this issue.
For some history reason, we can't upgrade the xcode right now. So could you please send me the 7.7.0 version to me via this email? Now I can't get the older release in the official website...
Thanks again.





------------------
祝商祺!

Jerry Chen, 技术总监
深圳市乐奥科技有限公司
电话 : 18682009863
QQ: 522805260
 
 
 
------------------ Original ------------------
From:  "'Veer Arjun Busani(Mobile Ads SDK Team)' via Google Mobile Ads SDK Developers"<google-adm...@googlegroups.com>;
Date:  Fri, May 6, 2016 10:23 PM
To:  "Google Mobile Ads SDK Developers"<google-adm...@googlegroups.com>;
Subject:  Re: Undefined symbols _OBJC_CLASS_$_SFSafariViewController
--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/l4zfUPlbGoU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mcle...@gmail.com

unread,
May 17, 2016, 7:56:19 AM5/17/16
to Google Mobile Ads SDK Developers
Hello,

Same problem here. 
It was working for me before I upgrade to last SDK (7,8,1).

I have the last version of Xcode and I'm on IOS 9 on the device....

Only way, I had to use an old SDK to make it work.
As soon as I replaced GoogleModileAds framework with the old one, I re worked perfectly.

Hoping that Google can manage and resolve this issue quickly.

S.L.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
May 17, 2016, 4:25:40 PM5/17/16
to Google Mobile Ads SDK Developers
Hi there,

I would suggest you to add the following frameworks: 
  • SafariServices
  • CoreBluetooth
Do let us know if that fixes the issue.

Thanks,
Veer Busani
Mobile Ads SDK Team

Furkan Akgül

unread,
Jun 14, 2016, 10:52:00 AM6/14/16
to Google Mobile Ads SDK Developers
Hi, i have same problem. I added all frameworks but i get same error:

Undefined symbols for architecture arm64:

  "_OBJC_CLASS_$_SFSafariViewController", referenced from:

      objc-class-ref in GoogleMobileAds(flat-arm64)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)



_____


I have no problem in Google Mobile Ads SDK v7.5.2. 

But When i update to v7.8.1, i get this error. 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 14, 2016, 11:46:38 AM6/14/16
to Google Mobile Ads SDK Developers
Hi Furkan,

Do you have any sample app for this? Because I'm unable to reproduce the issue with our latest sample apps.

Thanks,
Veer Busani
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages