0

I'm trying to integrate a like button in my iPhone application. Beyond the other issues, with respect to the FBConnect, I am also facing the incompatibility between FBConnect and ARC (91 build errors). Did anyone have tried to play with FBConnect on iOS 5?

Thank you in advance!

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
SWE
  • 485
  • 1
  • 4
  • 19

2 Answers2

2

Just for answering my question..

FB proposes to build the SDK as static library and import it to your project in that way (of course in case you are using ARC).

% ~/facebook-ios-sdk/scripts/build_facebook_ios_sdk_static_lib.sh

Thank you

SWE
  • 485
  • 1
  • 4
  • 19
1

You can flag the FB files so they do not use arc, that will eliminate the errors.

See Here: ios5 ARC what is the compiler flag to exclude a file from ARC?

Community
  • 1
  • 1
nycynik
  • 7,371
  • 8
  • 62
  • 87
  • specificly the answer to exclude the file from ARC, use the -fno-objc-arc flag in build phases>compile sources – nycynik Feb 28 '12 at 18:25