Admob Unity plugin iOS cocoapods not installed properly

301 views
Skip to first unread message

Romain

unread,
Apr 11, 2023, 11:03:19 PM4/11/23
to Google Mobile Ads SDK Developers
Hi, I"m having trouble to build for iOS with the Admob Unity plugin. 
My version of Unity is 2021.3.4f1
I use GoogleMobileAds-v8.0.0.unitypackage.
I'm on MacOS 20.0.1.
I use Xcode 13.4.1.

1) When I try to install cocoapods from the External Dependency Manager -> iOS resolver -> Install Cocoapods, it shows me:
gem install cocoapods--user-install
You don't have Users/me/.gem/ruby/2.6.0/bin in your PATH, em executables will not run.
All the rest seems to install successfully.

I do have the the right path in my PATH.
I've tried installing cocoapods from the documentation in all different ways, no success.

When I make an iOS build in Unity, it builds successfully but gives one error:
"OS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
After the failure, "pod repo update" was executed and failed. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation."

pod install output:
Analyzing dependencies
(followed by lots more lines, just showing you the beginning):

System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Users/romainmacre/.gem/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): tried: '/Users/romainmacre/.gem/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/ffi_c.bundle' (no such file) - /Users/romainmacre/.gem/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/romainmacre/.gem/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi.rb:5:in `rescue in <top (required)>'


2) The Xcode project unsurprisingly doesn't compile due to UniyAds.framework, with errors like:


Undefined symbol: _OBJC_CLASS_$_GADRequest

and more.



I have no idea how to progress from here. 
Thanks in advance,

Romain




Mobile Ads SDK Forum Advisor

unread,
Apr 12, 2023, 5:47:40 AM4/12/23
to woodyg...@gmail.com, google-adm...@googlegroups.com

Hello Romain,

Thank you for reaching out to us.

Based on the information you provided, the issue you are encountering appears to be a CocoaPods installation issue and ,unfortunately, out of Google Mobile Ads SDK's scope. It also appears that the Xcode project error you are encountering is directly related to the CocoaPods installation issue. We recommend reaching out to other forums like Stack Overflow as they are better suited to assist you with these concerns.

Regards,

Google Logo Mobile Ads SDK Team


ref:_00D1U1174p._5004Q2kUV9l:ref
Reply all
Reply to author
Forward
0 new messages