ShareKit/ShareKit — Issue #253: ShareKit 2.0 + PhoneGap 1.3.0 + Xcode 4.2 - Build issues
Author: lumierephoto
Created: 2012-02-24 05:46:57+00:00
State: open

Having similar build issues to those on issue 245: https://github.com/ShareKit/ShareKit/issues/245

I thought I'd start a ticket for those building with PhoneGap.

I was finally able to build successfully after removing the references for JSONkit in the ShareKit folder in Xcode.

I was also getting an error for the SHKtwitter.m file and changed:

#import "JSONKit.h"

To:

#ifdef PHONEGAP_FRAMEWORK
#import "PhoneGap/JSONkit.h" // This code replace quotations with brackets "<" and ">"
#else
#import "JSONkit.h"
#endif

Also, you also have to remove the references for Reachability in the ShareKit folder and in the SHK.m file change:

#import "Reachability.h"

to

#ifdef PHONEGAP_FRAMEWORK
#import
#else
#import "Reachability.h"
#endif

Plus, uncheck "Use Automatic Reference Counting" when creating a new project in Xcode using PhoneGap as PhoneGap doesn't support this.

So, why did I start a ticket if I've seemed to have solved the issues???

I still have 24 issues (warnings) associated with SHKSharerDelagate.m & SHKFormControllerLargeTextField.m