简体   繁体   English

Firebase SDK for Unity无法在iOS中编译

[英]Firebase SDK for Unity does not compile in iOS

I'm working on a project that uses the Firebase SDK for Unity , specifically the FirebaseMessaging.unitypackage , it's all fine on android, but I'm receiving errors on the iOS build . 我正在开发一个使用UnityFirebase SDK的项目,特别是FirebaseMessaging.unitypackage ,在android上一切正常,但在iOS版本上收到错误


Minimal, Complete, and Verifiable example to reproduce the error: 最小,完整和可验证的示例来重现该错误:

Requirements: 要求:

  • iOS device (version 7.0 or later) iOS设备(7.0或更高版本)
  • Computer with macOS 装有macOS的计算机
  • Xcode 8 Xcode 8

Steps: 脚步:

  1. Download the latest Unity version. 下载最新的Unity版本。 (5.5.1f1 at this moment) (目前为5.​​5.1f1)
  2. Download Firebase SDK for Unity. 下载 Unity的Firebase SDK。
  3. Unzip the Firebase SDK for Unity. 解压缩Firebase SDK for Unity。
  4. Open Unity 5.5.1f1 and create a new project. 打开Unity 5.5.1f1并创建一个新项目。
  5. Go to Assets > Import Package > Custom package... , select the unzipped FirebaseMessaging.unitypackage and import all of it. 转到“ 资产”>“导入程序包”>“自定义程序包...” ,选择解压缩的FirebaseMessaging.unitypackage并将其全部导入。
  6. Go to File > Build Settings... , select iOS and click on Switch Platform. 转到“ 文件”>“构建设置...” ,选择iOS,然后单击“切换平台”。
  7. Open Player Settings... and set a Bundle Identifier . 打开播放器设置...,然后设置捆绑包标识符
  8. File > Save project 文件>保存项目
  9. Connect the iOS device to the computer. 将iOS设备连接到计算机。
  10. File > Build & Run 文件>构建并运行

The project build on Xcode will end on the error shown in the image below: 在Xcode上构建的项目将在下图所示的错误处结束:

建立错误


Tried in two different MacBooks and with multiple projects. 在两个不同的MacBooks中尝试了多个项目。

  • Is there something that we can do? 有什么可以做的吗?
  • Is it an error that must be resolved by Google? 这是Google必须解决的错误吗?

At Feb 27 a new version of the Firebase Unity SDK has been released solving this error. 2月27日, Firebase Unity SDK新版本已发布,可以解决此错误。 Now the Unity project compiles without errors for iOS. 现在,Unity项目针对iOS的编译没有错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM