DefaultSHKConfigurator クラスを使用すると、使用前に構成する必要があることがわかります。
*** Terminating app due to uncaught exception 'IllegalStateException', reason: 'ShareKit must be configured before use. Use your subclass of DefaultSHKConfigurator, for more info see https://github.com/ShareKit/ShareKit/wiki/Configuration. Example: ShareKitDemoConfigurator in the demo app'
そのため、代わりに DefaultSHKConfigurator を拡張するカスタム SHK コンフィギュレーターを作成すると、'Duplicate Interface Definition for class 'DefaultSHKConfigurator''
この場合、次の applicationDiDfinishLaunching でコンフィギュレーターを作成しています。
-(void)applicationDidFinishLaunching:(UIApplication *)application{
NSLog(@"application did finish launching.");
DefaultSHKConfigurator *configurator = [[CustomSHKConfigurator alloc] init];
[SHKConfiguration sharedInstanceWithConfigurator:configurator];
}
DefaultSHKConfigurator を使用している場合は、コードを変更して DefaultSHKConfigurator を割り当てて初期化します....しかし、どちらの方法でも、よくわからないこのエラーが発生するのを防ぎます。
修理:
呼び出す必要があります。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {