googleads-mobile-unity: Unity Cloud Build for iOS doesn't support cocoapods
Currently Unity Cloud Build doesn’t support cocoapods.
'pod' command not found; unable to generate a usable Xcode project.
Is it possible to integrate the latest version of the plugin without using cocoapods at all?
Should I just add iOS Mobile Ads SDK to my project to solve the problem?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
Currently, the JarResolver library does not support Unity Cloud builds, but we are working to fill that gap in functionality. Look for an update on this soon.
Not only Admob or Firebase, but some other systems also require CocoaPods. My game is using DeltaDNA Analytics which also requires CocoaPods.
I ran into the same issues with GoogleMobileAds 3.5.0 and Unity Cloud Build for iOS. The recent answers here were correct, but I thought it might be helpful to summarize everything:
Add GoogleMobileAds.framework to Assets/Plugins/iOS/…
Add a [PostProcessBuild] function to modify the generated Xcode project:
Also generally disable usage of Cocoapods in your Unity project if you want to use UCB:
https://forum.unity3d.com/threads/build-failed-cocoapods.421286/
@GarthSmith if you’re taking this approach to disable dependency resolution, you’ll want to ensure you’re including the Google Mobile Ads iOS framework at the
Assets/Plugins/iOS/
directory of your Unity project.