解决方法Unity5 iOS编译错误与facebook-unity-sdk 6.2.1 [英] Workaround for Unity5 iOS compile error with facebook-unity-sdk 6.2.1
问题描述
在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屋!