构建iOS平台
1、Cocopods
由于广告及 Firebase 是由 Cocopods 管理,所以导出 xcode 工程后,需要通过 pod install 命令来安装第三方库。
1.1 修改Podfile
每次导出工程时都需要移除以下代码段!
'target 'Unity-iPhone' do
end
执行命令
打开终端,cd至导出的xcode项目目录,执行
pod install
执行成功后,打开白色的 Unity-iPhone.xcworkspace 进行项目调试。


2、添加动态库
2.1 找到项目中Products,选择任一文件 Show in Finder

2.2 将下图中的 framework 拖至 TARGET 目录下 Unity-iPhone -> General ->Frameworks, Libraries, and Embedded Content 中,如下图:

3、iOS Google登录
需要获取reversed client ID 和 clientID

将reversed client ID 和 client 添加至 info.plist中


4、Apple登录

