2012-01-05 8 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" - > "Build Phases" - > "Compile Sources"に* .pb.hと* .pb.mを追加してください!

0

私の働くenvはxcode 5.0.2です。

追加* .pb.m "TARGET" へ - > "フェーズの構築" - > "ソースをコンパイル"

私が追加した後、* .pb.hを追加しない* .pb.h、それができませんリンク。

関連する問題