开发者

PhoneGap Facebook Plugin compilation error in Xcode 4

on my attempt to build a PhoneGap-based iOS app, I stumbled upon this problem. The app is using facebook connect plugin provided by phonegap team. I followed the instructions on the README, and encountered this compilation error on Xcode:

/../facebook-ios-sdk/src/FBRequest.m:183: error: 'SBJSON' undeclared (first use in this function) /../facebook-ios-sdk/src/FBRequest.m:183: error: (Each undeclared identifier is reported only once /../facebook-ios-sdk/src/FBRequest.m:183: error: for each function it appears in.) /../facebook-ios-sdk/src/FBRequest.m:183: error: 'jsonParser' undeclared (first use in this function)

I开发者_开发问答 am new to phonegap and Xcode/iOS development, so would appreciate any help on resolving this error. Thanks.


Found out the problem, turned out I was using updated (but not released) forked phonegap library, which the SBJSON class has been renamed to PG_SBJSON. Manually changed the SBJSON class to PG_SBJSON resolved the problem.


If you upgraded to PhoneGap 1.1.0 .. you need to degrade to PhoneGap 1.0.0 since the new version does not work correctly with the Facebook Plugin.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜