简体   繁体   English

升级Unity Facebook SDK后无法为iOS构建

[英]Can't build for iOS after upgrading Unity Facebook SDK

After upgrading to iOS9 the FB integration has seized to work with my app. 升级到iOS9之后,FB集成已与我的应用配合使用。 To fix this, I updated the Facebook SDK (to version 7.2.2) to be used with Unity 4.6.9, and after the necessary changes the integration works fine in the editor. 为了解决这个问题,我将Facebook SDK(版本7.2.2)更新为与Unity 4.6.9一起使用,并在进行了必要的更改之后,在编辑器中可以很好地进行集成。

But now I can't build the whole app to the device any more, as Xcode (version 7.1) It just giving me 19 errors similar to this: 但是现在我不能再将整个应用程序构建到设备上,因为Xcode(7.1版)仅给我19个类似于此的错误:

Undefined symbols for architecture armv7: "_IOSLogInWithReadPermissions", referenced from: _IOSFacebook_IOSLogInWithReadPermissions_m971 in Bulk_Assembly-CSharp_0.o (maybe you meant: _IOSFacebook_IOSLogInWithReadPermissions_m971) 架构armv7的未定义符号:“ _ IOSLogInWithReadPermissions”,引用自Bulk_Assembly-CSharp_0.o中的_IOSFacebook_IOSLogInWithReadPermissions_m971(也许您表示的是:_IOSFacebook_IOSLogInWithReadPermissions_m971)

I've checked in the Facebook SDK documentation but it seems to me that it only tells me to update the plist file. 我已经检查了Facebook SDK文档,但在我看来,它仅告诉我更新plist文件。 But when I look at my plist file, it already looks like what is in the documentation. 但是,当我查看我的plist文件时,它已经看起来像文档中的内容。

How can I fix the undefined symbols error with Facebook SDK? 如何使用Facebook SDK解决未定义符号错误?

The issue is that starting with Facebook Unity SDK version 7.1.0 (September 21, 2015) they dropped support for Unity 4, see the Changelog and the first line of the Getting Started page. 问题是,从Facebook Unity SDK版本7.1.0(2015年9月21日)开始,他们放弃了对Unity 4的支持,请参阅Changelog和“ 入门”页面的第一行。

BREAKING CHANGE: Unity 4 is no longer supported. 突破性变化:不再支持Unity 4。 Unity 5 is required 需要Unity 5

Anyhow the reason this breaks, that Unity 5 allows to put plugins somewhere else than in the Plugins folder, and Facebook Unity SDK uses that feature and put their Objectice-C code into Facebook/Editor/iOS . 无论如何,这种中断的原因是, Unity 5允许将插件放置在Plugins文件夹之外的其他位置,而Facebook Unity SDK使用该功能并将其Objectice-C代码放置到Facebook / Editor / iOS中

You could try to move it into Plugins/iOS . 您可以尝试将其移动到Plugins / iOS中 But you might run into more issues.... 但是您可能会遇到更多问题...。

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

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