My project works fine for android, but I just cannot build for iOS. When I try gives below error in Google Mobile Ads files. What may be the reason, please help. (By the way I tried reinstalling iOS Support, doesn’t work)
Could not create a new Xcode project with CocoaPods: Encountered unexpected error while running pod
UnityEngine.Debug:Log(Object)
GoogleMobileAds.Postprocessor:runPodUpdate(String) (at Assets/GoogleMobileAds/Editor/PostProcessor.cs:48)
GoogleMobileAds.Postprocessor:OnPostprocessBuild(BuildTarget, String) (at Assets/GoogleMobileAds/Editor/PostProcessor.cs:27)
UnityEditor.HostView:OnGUI()
@povilas , I’m having the same issue and I’ve come across another more recent report of it:
My error references a call to RunPodUpdate(String) on line 60 of PostProcessor.cs as with the error posted above:
Could not create a new Xcode project with CocoaPods: Encountered unexpected error while running pod
UnityEngine.Debug:LogWarning(Object)
GoogleMobileAds.Postprocessor:RunPodUpdate(String) (at Assets/GoogleMobileAds/Editor/PostProcessor.cs:60)
GoogleMobileAds.Postprocessor:OnPostprocessBuild(BuildTarget, String) (at Assets/GoogleMobileAds/Editor/PostProcessor.cs:27)
UnityEditor.HostView:OnGUI()
I’m using the official Unity Admob plugin:
and it works fine when I build for Android. Was there ever any more progress tracking down the cause?
I found the issue in my particular situation. I’m doing my primary development on Windows 10 and then using Xcode on a Mac for the final iOS build. I was attempting to do the Unity iOS build on Windows 10 to create the Xcode files to copy to the Mac. Apparently CocoaPods only exists on OS X, so I needed to instead copy the Unity project to the Mac and use Unity on the Mac to do the iOS build. The project built without the CocoaPods error when I did this.