Facebook iOS SDK 3.2.1 - [NSError fberrorShouldNotifyUser]: unrecognized selector sent to instance

前端 未结 2 556
孤城傲影
孤城傲影 2021-02-07 21:45

I just upgraded my app from Facebook iOS SDK 3.1 to 3.2.1 and I\'m trying to take advantage of the new error handling provided by the new FBError category on NSError. The code i

相关标签:
2条回答
  • 2021-02-07 22:11

    You need to add -ObjC to "other linker flags" in your project's build settings.

    0 讨论(0)
  • 2021-02-07 22:27

    Did you install the 3.2.1 sdk into a different directory (rather than overwriting the 3.1 sdk)? If so, it's possible xcode is linking the older version. Can you confirm the framework path in xcode by:

    1. In project navigator where you added the Facebook Framework, right click -> Show in Finder and verify it opens the 3.2.1 sdk location; and,
    2. In your target's build settings, search for "framework" and verify the Framework Search Paths only includes the 3.2.1 sdk path - I have found that it can remember old framework locations and use the the wrong path.
    0 讨论(0)
提交回复
热议问题