2011-04-29 4 views
1
"_OBJC_CLASS_$_InputAmountVC", referenced from: 

objc-class-ref-to-InputAmountVC in p0931917_prac_2AppDelegate.o 

ld: symbol(s) not found 
collect2: ld returned 1 exit status 

Ld "build/Debug-iphonesimulator/p0931917 prac 2.app/p0931917 prac 2" normal i386 
cd "/Volumes/Storage/p0931917 prac 2" 
setenv MACOSX_DEPLOYMENT_TARGET 10.6 
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk "-L/Volumes/Storage/p0931917 prac 2/build/Debug-iphonesimulator" "-F/Volumes/Storage/p0931917 prac 2/build/Debug-iphonesimulator" -filelist "/Volumes/Storage/p0931917 prac 2/build/p0931917 prac 2.build/Debug-iphonesimulator/p0931917 prac 2.build/Objects-normal/i386/p0931917 prac 2.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -o "/Volumes/Storage/p0931917 prac 2/build/Debug-iphonesimulator/p0931917 prac 2.app/p0931917 prac 2" 

dyld: shared cached file was build against a different libSystem.dylib, ignoring cache 
dyld: shared cached file was build against a different libSystem.dylib, ignoring cache 
dyld: shared cached file was build against a different libSystem.dylib, ignoring cache 
dyld: shared cached file was build against a different libSystem.dylib, ignoring cache 
dyld: shared cached file was build against a different libSystem.dylib, ignoring cache 
Undefined symbols: 
    "_OBJC_CLASS_$_InputAmountVC", referenced from: 
     objc-class-ref-to-InputAmountVC in p0931917_prac_2AppDelegate.o 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 

이 오류가 발생했습니다.기호가 없습니다. objc 클래스 참조

답변

1

링커는 해당 특정 클래스에 대한 개체 코드 (이진 코드)를 찾지 못합니다.

코드 인 경우 .m/.mm/.c/.cpp 소스 파일을 빌드 대상에 속하게하십시오.

라이브러리에있는 경우 링커가 라이브러리 검색 경로 등을 찾을 수 있는지 확인하고 실제로 동일한 설정으로 빌드하십시오.

후자의 문단에 대해 dyld처럼 보일뿐입니다. dyld는 현재 대상보다 다른 버전의 libSystem.dylib에 대해 빌드되었으므로 기본적으로 필요한 코드가 없습니다. (다른 아키텍처 또는 기본 SDK?)

관련 문제