iPhone ARC & Facebook SDK

前端 未结 4 950
别那么骄傲
别那么骄傲 2021-01-18 17:06

I\'m getting all kinds of build errors with Facebook\'s SDK because my app uses ARC. I try to remove the Facebook files from the compiler to avoid this, but I get an Apple M

4条回答
  •  遇见更好的自我
    2021-01-18 17:49

    And this is why distributing a shared library by copy and pasting files is bad. A library should be distributed as it's own Xcode projects with a static library target, so that the build setting requirements of your projects and the libraries you use can not screw up one or the other.

    File a bug for the Facebook SDK here: https://github.com/facebook/facebook-ios-sdk/issues

    And in the mean time add the -fno-objc-arc flag to the implementation files in the Facebook SDK. You can do this by;

    1. Select your application target
    2. Go to the Build Phases tab
    3. Add for each file under the Compile Sources section.

提交回复
热议问题