Error: 'pod' command not found; unable to generate a usable Xcode project. You can install cocoapods with the Ruby gem package manager:
UnityでiOSビルドするとこんなエラーが出た。
‘pod’ command not found; unable to generate a usable Xcode project. You can install cocoapods with the Ruby gem package manager:
sudo gem install -n /usr/local/bin cocoapods
pod setup
UnityEngine.Debug:LogError(Object)
Google.IOSResolver:Log(String, Boolean, LogLevel)
Google.IOSResolver:RunPodCommand(String, String)
Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String)
UnityEditor.HostView:OnGUI()
これもAdMobの仕業。
“cocoapods"をインストールしろとかなんとか?
いらねーよ!と思った場合
Assets/GoogleMobileAds/Editor/AdMobDependencies.csから下記を削除
Type iosResolver = Google.VersionHandler.FindClass(
"Google.IOSResolver", "Google.IOSResolver");
if (iosResolver == null) {
return;
}
Google.VersionHandler.InvokeStaticMethod(
iosResolver, "AddPod",
new object[] { "Google-Mobile-Ads-SDK" },
namedArgs: new Dictionary<string, object>() {
{ "version", "7.13+" }
});
