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