2013-02-28 3 views
1

Xcode에서 프로그램을 컴파일 할 때이 오류가 발생합니다.Xcode에서 컴파일 할 때 링커 오류가 발생했습니다.

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_MyDatabase", referenced from: 
     objc-class-ref in Gallery_CollectionViewController.o 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

답변

2

당신은 Xcode를 대상으로 클래스 MyDatabase를 구현하는 소스 파일을 추가 잊어 버린 그 결과는 컴파일 된 바이너리와 연결되지 않았습니다.

+0

이제 어떻게해야합니까? –

+0

@AshishPatil 바이너리 타겟에'MyDatabase'를 구현 한 파일을 추가해야합니다. 이것에 대한 대답은 다음과 같습니다. http://stackoverflow.com/questions/5300785/adding-files-to-seperate-targets-in-xcode-4 – trojanfoe

+0

고맙습니다. :) –

관련 문제