2012-01-05 4 views
0

프로토콜 버퍼를 사용하는 앱을 만들려고합니다. 이 오류가 발생합니다. 그 이유는 무엇입니까?protobuf를 사용하는 아키텍처 i386에 대한 정의되지 않은 기호

Ld /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest normal i386 
cd /Users/fmota/Documents/Developer/Protobuf/PBTest 
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/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator -F/Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator -filelist /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Intermediates/PBTest.build/Debug-iphonesimulator/PBTest.build/Objects-normal/i386/PBTest.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest 

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

답변

0

예, 이것은 일반적인 문제입니다.

this nearly duplicate question에 대한 답변을 확인하고 문제가 해결되었는지 알려주세요. :-)

+0

아니요, 해결하지 못했습니다. :( –

0

"TARGET"-> "빌드 단계"-> "소스 컴파일"에 * .pb.h 및 * .pb.m을 추가하십시오!

0

내 작업 환경은 xcode 5.0.2입니다.

추가 * .pb.m을 "대상"- "페이즈 빌드"> - 추가하지 마십시오 내가 * .pb.h을 추가 한 후> "컴파일 소스는"

*이 .pb.h, 그것은 수 없어 링크.

관련 문제