解决方法Unity5 iOS编译错误与facebook-unity-sdk 6.2.1 [英] Workaround for Unity5 iOS compile error with facebook-unity-sdk 6.2.1

查看:463
本文介绍了解决方法Unity5 iOS编译错误与facebook-unity-sdk 6.2.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在iOS上编译时,我得到这些错误:



在ios:
FBLinkShareParams * dialogParams = [[[FBLinkShareParams alloc] autorelease];
/Users/Daniel/Repositories/Unity5/FacebookTest/Assets/Facebook/Editor/iOS/FbUnityInterface.mm:561:73:'autorelease'is unavailable:not available in automatic reference counting mode



/Users/Daniel/Repositories/Unity5/FacebookTest/Assets/Facebook/Editor/iOS/FbUnityInterface.mm:662:15:没有已知的选择器的类方法publishInstall:withHandler:'

现在这些似乎并不是一个问题,所以有什么Facebook开发人员谁可以提供一个快速的解决方法?

解决方案

Put -fno- objc-arc在FbUnityInterface.mm的编译标志中,它将工作


i am getting these errors when i try to compile on iOS:

on ios: FBLinkShareParams *dialogParams = [[[FBLinkShareParams alloc] init] autorelease]; /Users/Daniel/Repositories/Unity5/FacebookTest/Assets/Facebook/Editor/iOS/FbUnityInterface.mm:561:73: 'autorelease' is unavailable: not available in automatic reference counting mode

/Users/Daniel/Repositories/Unity5/FacebookTest/Assets/Facebook/Editor/iOS/FbUnityInterface.mm:662:15: No known class method for selector 'publishInstall:withHandler:'

now these don't seem to be that much of a problem, so is there any Facebook developer here who can give as a fast workaround this? How is responsible for this at Facebook, why can't we contact them directly?

解决方案

Put -fno-objc-arc in the compile flags of the FbUnityInterface.mm , and it will work

这篇关于解决方法Unity5 iOS编译错误与facebook-unity-sdk 6.2.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆