Mac 平台下unity 导出IOS项目问题

时间:2024-04-08 16:39:19

Mac 平台下unity 导出IOS项目问题

Mac 平台下unity接入Admob Unity导出IOS项目问题

作为一个新手,尝试在Mac 平台下unity 接入Admob Unity导出IOS项目过程中出现了一系列的问题,现把所有问题总结

1)Admob 官方地址:

https://developers.google.com/admob/unity/start
官方说:在unity 平台需要搭建CocoaPods环境
搭建环境的方法参考:https://www.jianshu.com/p/f43b5964f582
!!!重点来了,注意!!!
最新版的MacOS Catalina系统命令行执行pod setup命令直接结束啦;
莫着急,我们手动安装本地库,速度绝对快
命令行执行以下操作
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk

2)关于Unity ios打包卡在Converting managed assemblies to C++

如果你发现这里如果一直卡顿,跟卡死状态一样,莫要着急,因为这个时候他在下载东西,大概会耗时2个小时左右
问题描述说明:https://blog.csdn.net/iningwei/article/details/106769312

3)关于Unity ios打包卡在Converting managed assemblies to C++

unity build完成之后,出现
iOS 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 succeeded. “pod install” was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod “Google-Mobile-Ads-SDK”:
In Podfile:
Google-Mobile-Ads-SDK (~> 7.63)

Specs satisfying the Google-Mobile-Ads-SDK (~> 7.63) dependency were found, but they required a higher minimum deployment target.

这个看最后一句话,只需要在unity ios 平台 Other Setting 中修改Target minimum ios version 9.0就可以

Mac 平台下unity 导出IOS项目问题