简体   繁体   English

iOS Unity Firebase Messenger Xcode编译错误:FIRDynamicLinks

[英]iOS Unity Firebase Messenger Xcode Compile Error: FIRDynamicLinks

Building with Unity 2018.4.2 - Xcode 10.2 - Latest iOS Targets Firebase Latest (6.1.1) for Unity with .Net 4 使用Unity 2018.4.2构建-Xcode 10.2-最新的iOS目标Firebase最新(6.1.1)适用于带有.Net 4的Unity

For Firebase We are using the following unity packages: - FirebaseMessaging.unitypackage - FirebaseAnalytics.unitypackage 对于Firebase,我们使用以下统一软件包:-FirebaseMessaging.unitypackage-FirebaseAnalytics.unitypackage

Get the following Build Error in Xcode: 在Xcode中获取以下构建错误:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
      objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

On another Machine same error however armv7 target: 在另一台机器上,同样的错误是armv7目标:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
      objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Tested Solutions (no solution yet): 经测试的解决方案(尚无解决方案):

  • Obj-C to frameworks (was already there) 框架的对象(已经存在)
  • Updated Cocoa Pods to Latest 将可可豆荚更新到最新
  • Deleted Developer/Xcode/DerivedData 删除的Developer / Xcode / DerivedData
  • Updated Cocoa Pods and deleted caches 更新了可可豆荚并删除了缓存

The strangest thing is this only started happening on Monday, previously was working, nothing else was changed, so this leads to believe this is Google changed something in their Cocoa pods library which is linking agains't another package which is not included now. 最奇怪的是,这只是在星期一开始,之前一直在工作,没有其他更改,因此人们认为这是Google更改了其Cocoa pods库中的某些内容,该库再次链接了现在不包含的另一个程序包。

Problem does not occur in the same Android Variant of the Project. 在项目的相同Android变体中不会发生问题。

Solution: 解:

It now requires you to also include and install Firebase: DynamicLinks in order to compile for iOS. 现在,您还需要包括并安装Firebase:DynamicLinks,以便针对iOS进行编译。

  • FirebaseDynamicLinks.unitypackage FirebaseDynamicLinks.unitypackage

FirebaseDynamicLinks.unitypackage图像

So install the following package into your unity project from the download of Firebase Unity. 因此,可以从Firebase Unity下载中将以下软件包安装到您的unity项目中。

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

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