私のアプリでは、Core.h
ファイルを作成し、いくつかのメソッドを宣言しました。他のファイルでは、「core.h」をインポートし、そのオブジェクトを作成し、オブジェクトを介してメソッドを呼び出しますが、エラーは表示されません。
しかし、アプリを実行しようとすると、次のようなエラーが表示されます:
アーキテクチャ i386 の未定義シンボル:
「_OBJC_CLASS_$_Core」、次から参照:
objc-class-ref in ReadingDatabaseAppDelegate.o
objc-class-ref in HomeController.o
私のコード:
// HomeController.h
#import "Core.h"
//HomeController.m
- (void)startInitialising:(id)sender
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
//NSLog(@"%@ %@", [UIDevice currentDevice].systemName, [UIDevice currentDevice].systemVersion);
Core *coreObj = [[Core alloc] init];
threadArray = [coreObj getPreferences];
threadPrefereneRow = [coreObj getSavedPreferene];
threadLastUpdated = [coreObj getSavedRequestTime];
threadNumberOfUpdates = [coreObj getNumberOfUpdates:threadLastUpdated];
[coreObj release];
[[NSNotificationCenter defaultCenter] postNotificationName:FinishInitializing object:nil];
[pool release];
}
-(void) finishInitializingHandler: (NSNotification *) sender
{
Core *coreObj = [[Core alloc] init];
[coreObj setTabbarSyncValue:tabBar];
[coreObj release];
}
どうすればこれを解決できますか