Workaround for Unity5 iOS compile error with facebook-unity-sdk 6.2.1

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/ ‘autorelease’ is unavailable: not available in automatic reference counting mode

  • FacebookSDK for Unity iOS Mach-O linker error - undefined symbols _iosLogin,
  • Build and load Assetbundles in Unity
  • How to do 2D animation in Unity
  • Using Unity3D in one of the iOS App's views
  • Getting png crush error while creating ipa from unity editor in Xcode 7
  • Passing complex data type from a pure c plugin to Unity C# scripts
  • /Users/Daniel/Repositories/Unity5/FacebookTest/Assets/Facebook/Editor/iOS/ 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?

    2 Solutions Collect From Internet About “Workaround for Unity5 iOS compile error with facebook-unity-sdk 6.2.1”

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

    Following user2018862’s advice, this worked for me (setting the -fno-objc-arc flag for, where is found under the “Compiled Sources” section of the “Build Phases” pane.

    enter image description here