2011-02-02 4 views
0

터미널에서 단위 테스트를 실행하려고하지만 매번 실패합니다. 다음 메시지는 터미널에서 otest를 실행하려고 할 때 얻는 메시지입니다.otest를 실행하면 이미지에서 이전 ABI 메타 데이터가 발견됨

objc[42339]: GC: forcing GC OFF because OBJC_DISABLE_GC is set 
objc[42339]: found old-ABI metadata in image /Developer/Tools/otest ! 
Segmentation fault 

허드슨 통합을위한 단위 테스트 결과가 필요하며 iOS 배포 대상을 4.2로 설정해야합니다. 여기 제가 달아나려고하는 것입니다.

export SDKROOT=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk 
export BUILD_DIR=~/Documents/XCode/MyApp/build 
export BUILD_PRODUCTS_DIR=~/Documents/XCode/MyApp/build/Debug-iphonesimulator 

export DYLD_ROOT_PATH=$SDKROOT 
export DYLD_FRAMEWORK_PATH=$BUILD_PRODUCTS_DIR:$SDKROOT 
export IPHONE_SIMULATOR_ROOT=$SDKROOT 
export CFFIXED_USER_HOME="~/Library/Application Support/iPhone Simulator/User/" 
export OBJC_DISABLE_GC=YES 
export DYLD_LIBRARY_PATH=$BUILD_PRODUCTS_DIR:$SDKROOT 
export DYLD_NEW_LOCAL_SHARED_REGIONS=YES 
export DYLD_NO_FIX_PREBINDING=YES 

arch -i386 /Developer/Tools/otest MyApp.octest 
+1

oostest의 iOS 빌드가 필요합니다. 특히 하나는 시뮬레이터를 목표로 삼았습니다. – bbum

답변

0

bbum 내가 잘못된otest을 사용하고 있었다 올바른 것입니다. Described here는 내가 내 응용 프로그램에 대한 올바른 otest를 선택 출력에 의해 분명히 다음

$ find /Developer -name otest 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/Developer/usr/bin/otest 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/Developer/usr/bin/otest 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/Developer/usr/bin/otest 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/Developer/usr/bin/otest 
/Developer/Tools/otest 

를 실행하는 데 필요한하고 완벽하게 일했다.

관련 문제